From acccddcdc09da4a39ca96038ddee5a8109831d11 Mon Sep 17 00:00:00 2001 From: camlambert2000 Date: Fri, 6 Feb 2026 06:30:22 +0000 Subject: [PATCH] ci: add GitHub Actions workflow for PR testing Runs npm install and npm test on pull requests to main. Tests must pass before PR can be merged. Co-Authored-By: Claude Opus 4.5 --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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..3655175 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: CI + +on: + pull_request: + branches: [main] + +jobs: + test: + 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: Run tests + run: npm test