ci: add lint/typecheck/unit-test lane to Gitea CI
This commit is contained in:
parent
6c68155c9d
commit
9ef8490e6e
@ -51,6 +51,32 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
docker run --rm -v "$PWD:/repo" aquasec/trivy:latest config /repo || true
|
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:
|
secret-scan:
|
||||||
needs: skip-ci-check
|
needs: skip-ci-check
|
||||||
if: needs.skip-ci-check.outputs.should-skip != '1'
|
if: needs.skip-ci-check.outputs.should-skip != '1'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user