From ea4426df9a4e02ea6dd6374942202823374af9a8 Mon Sep 17 00:00:00 2001 From: mayor Date: Fri, 13 Feb 2026 23:38:59 -0700 Subject: [PATCH] Add PR-gating CI workflow Runs npm ci, build, and test on every pull request to main. Blocks merge if build or tests fail. --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..7781d5c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI + +on: + pull_request: + branches: [main] + +jobs: + ci: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build + + - name: Test + run: npm test -- --run