From 247ea9eedc32f52f9b294a8657cb2d8bc9f62434 Mon Sep 17 00:00:00 2001 From: Isaac Dedini Date: Tue, 3 Nov 2026 11:21:21 +1000 Subject: [PATCH] Check every PR: format, types, tests and a build On each supported Node line, so a change that only works on one shows up before it reaches main. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/checks.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/checks.yml diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 0000000..5cbd077 --- /dev/null +++ b/.github/workflows/checks.yml @@ -0,0 +1,31 @@ +name: Checks + +on: + pull_request: + push: + branches: [main] + +jobs: + checks: + name: Node ${{ matrix.node }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + # Each release line web/package.json supports. + matrix: + node: ['22', '24', '26'] + defaults: + run: + working-directory: web + steps: + - uses: actions/checkout@v7 + - uses: actions/setup-node@v7 + with: + node-version: ${{ matrix.node }} + cache: npm + cache-dependency-path: web/package-lock.json + - run: npm ci + - run: npm run lint + - run: npm run check + - run: npm test + - run: npm run build