From 9ef8490e6edf39d1308064c0b867f4a087a4d8f3 Mon Sep 17 00:00:00 2001 From: ilia Date: Sun, 26 Jul 2026 15:53:04 -0400 Subject: [PATCH] ci: add lint/typecheck/unit-test lane to Gitea CI --- .gitea/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 50448bd4..0b683c6c 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -51,6 +51,32 @@ jobs: run: | docker run --rm -v "$PWD:/repo" aquasec/trivy:latest config /repo || true + unit-tests: + needs: skip-ci-check + if: needs.skip-ci-check.outputs.should-skip != '1' + runs-on: [homelab, self-hosted, linux] + container: + image: node:22-bookworm + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 1 + + - name: Install dependencies + run: npm ci --workspaces --include-workspace-root + + - name: Rebuild better-sqlite3 + run: npm --workspace orchestrator rebuild better-sqlite3 + + - name: Lint (Biome) + run: npm run check:all + + - name: Type check (shared + orchestrator) + run: npm run check:types + + - name: Unit tests + run: npm run test:all + secret-scan: needs: skip-ci-check if: needs.skip-ci-check.outputs.should-skip != '1'