ci: add Gitea Actions workflow

Runs npm ci, typecheck, build, test, and a 'git diff --exit-code dist/'
gate that catches 'forgot to re-run npm run build' before merge. Fires on
PR / push to main / push to v* tags.
This commit is contained in:
2026-05-12 02:16:45 -07:00
parent 0af987651c
commit 7e29d8afbd

21
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,21 @@
name: ci
on:
push:
branches: [main]
tags: ['v*']
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm ci
- run: npm run typecheck
- run: npm run build
- run: npm test
- name: ensure dist is up to date
run: git diff --exit-code dist/