39 lines
915 B
YAML
39 lines
915 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
name: Test & build (Node ${{ matrix.node-version }})
|
|
runs-on: ubuntu-24.04
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
# Both ends of the supported engines range (package.json: >=20.18 <25).
|
|
# 20 is the CI baseline that has historically caught crashes newer local
|
|
# Node versions hid; 22 is the current LTS most contributors run.
|
|
node-version: ['20', '22']
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
run: npm install
|
|
|
|
- name: Check migration round trip
|
|
run: npm run test:migrations
|
|
|
|
- name: Run tests
|
|
run: npm test
|
|
|
|
- name: Build workspaces
|
|
run: npm run build
|