Skip to content

Merge pull request #117 from legobeat/test-fix #171

Merge pull request #117 from legobeat/test-fix

Merge pull request #117 from legobeat/test-fix #171

Workflow file for this run

name: Node CI
on: [push]
env:
FORCE_COLOR: 2
jobs:
test:
name: v${{ matrix.node }} @ ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [18, 20]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm ci
- name: Build and run tests
run: |
npm run build --if-present
npm test
- name: Run browser tests and lint
run: |
npm run browser-tests
npm run lint