From 32ffbd68a01e0568e609edbb831a9a5846b2db7c Mon Sep 17 00:00:00 2001 From: Sampson Date: Mon, 27 Jul 2026 14:22:12 -0500 Subject: [PATCH] ci: run format check, build, and tests on push and PR npm test previously only ran locally; nothing gated a broken build or a regression (e.g. from an SDK bump) before merge. --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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..ab0f95d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + + - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 + with: + node-version: '24.x' + + - name: Install dependencies + run: npm ci + + - name: Check formatting + run: npm run format:check + + - name: Build (typecheck) + run: npm run build + + - name: Test + run: npm test