ci: add lint/typecheck/unit-test lane to Gitea CI

This commit is contained in:
ilia 2026-07-26 15:53:04 -04:00
parent 6c68155c9d
commit 9ef8490e6e

View File

@ -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'