From de9e4f2797136d226e4e8797561a1b4cab5d02db Mon Sep 17 00:00:00 2001 From: roboloop <12248453+roboloop@users.noreply.github.com> Date: Thu, 27 Aug 2026 22:46:15 +0000 Subject: [PATCH] Add CI workflow: type-check, lint, tests, build on PRs and main Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01HHE8HJDRa4p1DvSXvLae9g --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 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..bca3d20 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI + +on: + pull_request: + push: + branches: [main] + +jobs: + ci: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: npm + + - run: npm ci + + - name: Type check + run: npm run type-check + + - name: Lint (oxlint) + run: npx oxlint . + + - name: Lint (eslint) + run: npx eslint . + + - name: Unit tests + run: npm run test:unit + + - name: Build + run: npm run build-only