Skip to content

Move to Supercharge v4 and ESM #126

Move to Supercharge v4 and ESM

Move to Supercharge v4 and ESM #126

Workflow file for this run

name: Run tests
on: [push, pull_request]
concurrency:
# the group name is composed of two elements:
# 1. this workflow name "run-tests"
# 2. the branch name retrieved via the "github.ref" variable
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
name: Node ${{ matrix.node-version }}
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Create .env file
run: cp .env.example .env
- name: Ensure docs directory
run: mkdir resources/docs
- name: Clone 2.x docs repository
uses: actions/checkout@v4
with:
repository: supercharge/docs
path: resources/docs/2.x
ref: 2.x
- name: Clone 3.x docs repository
uses: actions/checkout@v4
with:
repository: supercharge/docs
path: resources/docs/3.x
ref: 3.x
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
env:
CI: true