Skip to content

Update dependencies (#65) #23

Update dependencies (#65)

Update dependencies (#65) #23

Workflow file for this run

name: CI
on: push
jobs:
lint-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['18.x', '20.x']
steps:
- uses: actions/checkout@v4
- name: Setup Node.js v${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: 'package.json'
- name: Install npm dependencies
run: npm install
- name: Run lint
run: npm run lint
- name: Run tests
run: npm test -- --ci --coverage --runInBand
- name: Upload test reports
uses: actions/upload-artifact@v3
with:
name: test-reports
path: test/reports
- name: Upload test coverage
uses: actions/upload-artifact@v3
with:
name: test-coverage
path: test/coverage