generated from CubeCraft-Creations/Tracehound
53ed73ff6c
lint/typecheck/test pass; the build job failed only on actions/upload-artifact@v4, which Gitea Actions doesn't support. Drop the artifact upload and the placeholder production deploy job (the real build + deploy is build-dev.yaml's pull-based release). Keep lint, typecheck, test, and a build compile-check. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
40 lines
900 B
YAML
40 lines
900 B
YAML
name: CI
|
|
|
|
# Frontend quality gates (lint, typecheck, test, build-check).
|
|
# Actual build + deploy of the hub is handled by build-dev.yaml
|
|
# (pull-based release → Pi self-update).
|
|
|
|
on:
|
|
push:
|
|
branches: [dev, main]
|
|
pull_request:
|
|
branches: [dev, main]
|
|
|
|
jobs:
|
|
lint-and-typecheck:
|
|
runs-on: go-react
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: npm ci
|
|
- run: npm run lint
|
|
- run: npx tsc --noEmit
|
|
|
|
test:
|
|
needs: lint-and-typecheck
|
|
runs-on: go-react
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: npm ci
|
|
- 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
|