From 1ddc1aab195f1e3cb3bf806435351c00e17643d7 Mon Sep 17 00:00:00 2001 From: Garfield Date: Thu, 14 May 2026 18:00:11 -0400 Subject: [PATCH] ci: add Gitea Actions workflow for build + test on push/PR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Runs on every push to main and every PR: 1. npm ci — install deps 2. npm run build — TypeScript type check 3. npm test — vitest run (216 tests, all mocked, no DB/Redis needed) Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..4640918 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '22' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Type check + run: npm run build + + - name: Run tests + run: npm test + env: + NODE_ENV: test