From 32f2b4f3872c08b35e9de7d5bbe9c9741cc8ad64 Mon Sep 17 00:00:00 2001 From: Rowee13 Date: Sun, 2 Aug 2026 12:52:12 +0800 Subject: [PATCH] ci: add verify workflow for lint, typecheck, and build Runs on pull requests targeting main and on pushes to main. Next 16 no longer runs ESLint as part of `next build`, so nothing was checking lint automatically after the upgrade. This restores that, and adds typecheck and build alongside it. Co-Authored-By: Claude Opus 5 (1M context) --- .github/workflows/ci.yml | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9ca50ff --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,41 @@ +name: CI + +on: + pull_request: + branches: [main] + push: + branches: [main] + +# A newer push to the same branch makes the in-flight run obsolete. +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + verify: + name: verify + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v7 + + - uses: actions/setup-node@v7 + with: + node-version: 22 + cache: npm + + - name: Install + run: npm ci + + # Next 16 dropped linting from `next build`, so it runs on its own here. + - name: Lint + run: npm run lint + + - name: Typecheck + run: npm run typecheck + + - name: Build + run: npm run build