Skip to content

Merge pull request #116 from legobeat/ci-update-versions #172

Merge pull request #116 from legobeat/ci-update-versions

Merge pull request #116 from legobeat/ci-update-versions #172

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
- 22
os: [ubuntu-latest]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
with:
node-version: ${{ matrix.node }}
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- 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