Node.js 24.11.0 entered LTS (Krypton) with support through April 2028. This upgrades all CI pipelines, Docker images, and package metadata from Node 22 to Node 24. Changes: - ci.yml: node-version 22 → 24 (build + windows-portability jobs) - pipeline.yml: node-version 22 → 24 (dev-publish, test-verify, prod-release) - build-native.yml: node-version 22 → 24, actions/checkout@v4 → v6, actions/setup-node@v4 → v6 - cleanup-dev-versions.yml: node-version 22 → 24 - Dockerfile: node:22-bookworm → node:24-bookworm, node:22-slim → node:24-slim - package.json: engines.node >=20.6.0 → >=22.0.0 (supports both 22 and 24) - @types/node: ^22.0.0 → ^24.0.0 Verified: tsc --noEmit passes, 1729 unit tests pass on Node 24.14.0.
88 lines
1.8 KiB
YAML
88 lines
1.8 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main, feat/**]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
secret-scan:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Scan for hardcoded secrets
|
|
run: bash scripts/secret-scan.sh --diff origin/main
|
|
|
|
no-gsd-dir:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- name: Ensure .gsd/ is not checked in
|
|
run: |
|
|
if [ -d ".gsd" ]; then
|
|
echo "::error::.gsd/ directory must not be checked in"
|
|
exit 1
|
|
fi
|
|
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: '24'
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
|
|
- name: Typecheck extensions
|
|
run: npm run typecheck:extensions
|
|
|
|
- name: Validate package is installable
|
|
run: npm run validate-pack
|
|
|
|
- name: Run unit tests
|
|
run: npm run test:unit
|
|
|
|
- name: Run integration tests
|
|
run: npm run test:integration
|
|
|
|
windows-portability:
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: '24'
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
|
|
- name: Typecheck extensions
|
|
run: npm run typecheck:extensions
|
|
|
|
- name: Run unit tests
|
|
run: npm run test:unit
|