Skip to content

Fixing the CI

Fixing the CI #85

Workflow file for this run

name: CI
on:
push:
workflow_dispatch:
jobs:
lint-test:
name: Lint & test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['20.x', '22.x', '24.x']
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Node.js v${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install npm dependencies
run: npm install
- name: Run lint
run: npm run lint
- name: Run tests
run:
npm run test -- --coverage --reporter=junit
--outputFile='./junit-report.xml'
- name: Upload test reports
uses: actions/upload-artifact@v4
with:
name: test-reports-${{ matrix.node-version }}
path: ./junit-report.xml
- name: Upload test coverage
uses: actions/upload-artifact@v4
with:
name: test-coverage-${{ matrix.node-version }}
path: coverage