generated from CubeCraft-Creations/Tracehound
Dev #26
@@ -1,8 +1,9 @@
|
|||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
# Frontend quality gates (lint, typecheck, test, build-check).
|
# Frontend quality gates (lint, typecheck, test, build-check).
|
||||||
# Actual build + deploy of the hub is handled by build-dev.yaml
|
# One job on purpose: the runner fetches each action from github.com,
|
||||||
# (pull-based release → Pi self-update).
|
# which is flaky (connection resets), so we check out once instead of
|
||||||
|
# re-cloning per job. The real hub build + deploy is build-dev.yaml.
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -11,29 +12,12 @@ on:
|
|||||||
branches: [dev, main]
|
branches: [dev, main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint-and-typecheck:
|
quality:
|
||||||
runs-on: go-react
|
runs-on: go-react
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run lint
|
- run: npm run lint
|
||||||
- run: npx tsc --noEmit
|
- run: npx tsc --noEmit
|
||||||
|
|
||||||
test:
|
|
||||||
needs: lint-and-typecheck
|
|
||||||
runs-on: go-react
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- run: npm ci
|
|
||||||
- run: npm test
|
- run: npm test
|
||||||
|
|
||||||
# Verify the frontend compiles. No artifact upload — Gitea Actions
|
|
||||||
# doesn't support upload-artifact@v4, and build-dev.yaml produces the
|
|
||||||
# real, deployed artifact anyway.
|
|
||||||
build:
|
|
||||||
needs: test
|
|
||||||
runs-on: go-react
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- run: npm ci
|
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
|
|||||||
Reference in New Issue
Block a user