Skip to content

Bump actions/setup-node from 6 to 7 #709

Bump actions/setup-node from 6 to 7

Bump actions/setup-node from 6 to 7 #709

Workflow file for this run

name: CI
on: [push, pull_request]
# Only checkout needs the token; nothing here writes back to the repo.
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node-version: [22.x, 24.x, 26.x]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: npm run lint
- run: npm run typecheck
- run: npm run build
- run: npm test
# Single check for branch protection to require, so the build matrix can
# change without anyone editing the ruleset. always() is what makes it report
# a result when the matrix fails, rather than being skipped.
ci-success:
if: always()
needs: build
runs-on: ubuntu-latest
steps:
- name: Check build matrix result
if: needs.build.result != 'success'
run: exit 1