CI / check (push) Has been cancelled
actions/checkout and actions/setup-node at v4 target Node 20, which GitHub runners now force onto Node 24 with a deprecation notice on every run. v5 of both targets Node 24 natively. No change to what the workflow does. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Nh4A79bbqT9dcd2inzYUdg
35 lines
657 B
YAML
35 lines
657 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- uses: actions/setup-node@v5
|
|
with:
|
|
node-version: '22'
|
|
cache: npm
|
|
|
|
# `npm ci` needs the lockfile to match package.json exactly, which is the
|
|
# point: a pull request that changes a dependency has to say so.
|
|
- run: npm ci
|
|
|
|
- name: Type check
|
|
run: npx tsc --noEmit
|
|
|
|
- name: Tests
|
|
run: npm test
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
|
|
- name: Secret scan
|
|
run: node scripts/secret-scan.mjs
|