From 6ef3670304d9c343308218062d8bf85b6777f7e1 Mon Sep 17 00:00:00 2001 From: Rich Hankins Date: Wed, 28 Jan 2026 17:36:28 -0800 Subject: [PATCH 1/2] Add CI workflow to run tests on pull requests - Run tests on PRs to main and pushes to main - Uses Node.js 20 with npm caching for faster runs - Builds project and runs vitest test suite Agent-Id: agent-197d346e-17e3-4016-8f9a-c7d77e060a1e --- .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..5bb1124 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI + +on: + pull_request: + branches: [main] + push: + 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: Build + run: npm run build + + - name: Run tests + run: npm test From aa8ed0e1561e817985171be7d2e0767fbc280af9 Mon Sep 17 00:00:00 2001 From: Rich Hankins Date: Wed, 28 Jan 2026 17:56:44 -0800 Subject: [PATCH 2/2] Set explicit read-only permissions for CI workflow --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5bb1124..cb70d63 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,9 @@ on: push: branches: [main] +permissions: + contents: read + jobs: test: runs-on: ubuntu-latest