Run only static checks before main and gate full release on main push
Unified application CI and deployment / static-checks (push) Successful in 1m9s
python CI and deployment / static-checks (push) Successful in 1m7s
Unified application CI and deployment / static-checks (pull_request) Successful in 1m7s
python CI and deployment / static-checks (pull_request) Successful in 1m6s
Unified application CI and deployment / verify-and-release (push) Has been skipped
python CI and deployment / verify-and-deploy (push) Has been skipped
Unified application CI and deployment / verify-and-release (pull_request) Has been skipped
python CI and deployment / verify-and-deploy (pull_request) Has been skipped

This commit is contained in:
2026-11-04 04:24:31 +08:00
parent 0a77d03220
commit 7f88ebba71
6 changed files with 34 additions and 9 deletions
+15 -4
View File
@@ -12,7 +12,7 @@ on:
- 'pnpm-workspace.yaml'
- '.gitea/workflows/app.yml'
push:
branches: [main]
branches: ["**"]
paths:
- 'apps/waterfall-wiki/**'
- 'packages/brand/**'
@@ -26,20 +26,31 @@ concurrency:
group: unified-app-${{ gitea.event.pull_request.number || gitea.ref }}
cancel-in-progress: false
jobs:
verify-and-release:
static-checks:
runs-on: ces-control
timeout-minutes: 60
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check scripts and content contracts
- name: Check patch, syntax and source contracts without building
run: |
git diff --check HEAD^ HEAD
for script in scripts/*.sh; do bash -n "$script"; done
node scripts/check-studio-contracts.mjs
node --check scripts/verify-studio-visual.cjs
node --check apps/waterfall-wiki/scripts/infinite-canvas-smoke.cjs
node --check apps/waterfall-wiki/scripts/cleanup-ci-bucket.mjs
python3 -c 'import ast,pathlib; ast.parse(pathlib.Path("scripts/wiki-image-lifecycle.py").read_text())'
verify-and-release:
needs: static-checks
if: gitea.event_name == 'push' && gitea.ref == 'refs/heads/main'
runs-on: ces-control
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build and verify the unified application once
run: |
docker build --target integration -t "waterfall-wiki-tests:${{ gitea.sha }}" .