Skip to content

0.9.0

0.9.0 #439

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
needs: lint
strategy:
matrix:
node-version: [18, 20, 22]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
# Now install and run tests
- run: npm ci
- run: npm run build
- run: npm test
# Run lint and version tests as it's own job (also sets up caching of npm packages)
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
# Now install packages and lint
- run: npm ci
- run: npm run lint
# now build and run compatibility tests
- run: npm run build
- run: npm run test:compatibility