Skip to content

Move to Supercharge v4 and ESM #118

Move to Supercharge v4 and ESM

Move to Supercharge v4 and ESM #118

Workflow file for this run

name: Run tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.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@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install --legacy-peer-deps
- name: Run tests
run: npm test
env:
CI: true