From 6ed206a76d61a69602d4e4f4e76f939d67e924de Mon Sep 17 00:00:00 2001 From: iminierai-aig Date: Sun, 8 Mar 2026 16:17:15 -0700 Subject: [PATCH] ci: add GitHub Actions workflow for lint, typecheck, and unit tests Closes #83 - Runs on PRs and pushes to main - Matrix tests across Node 20 and 22 - Covers lint, typecheck, and unit tests - Skips e2e (known failures on main, tracked in #84) --- .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 000000000..56830f293 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + quality: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20, 22] + steps: + - uses: actions/checkout@v4 + + - name: Setup Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Lint + run: npm run lint + + - name: Typecheck + run: npm run typecheck + + - name: Unit tests + run: npm test -- --run