From 7e29d8afbdb14ec570886de324bf643ae8a6dd5b Mon Sep 17 00:00:00 2001 From: Brendan Chen Date: Tue, 12 May 2026 02:16:45 -0700 Subject: [PATCH] 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. --- .gitea/workflows/ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 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..c4d55c3 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -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/