mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-13 12:14:19 +00:00
Merge remote-tracking branch 'origin/dev' into kai/validate/pr-1457
This commit is contained in:
commit
bfb4258688
2 files changed
+35
-1
No files matched your search
@@ -160,3 +160,37 @@ jobs:
|
||||
|
||||
- name: Assert compose parity (compose.yaml vs docker-compose.integrated.yml)
|
||||
run: bash tests/docker/compose-parity.sh
|
||||
|
||||
# Single always-reporting status that branch protection requires.
|
||||
#
|
||||
# The validate/build/test jobs are gated to trusted author associations so
|
||||
# untrusted fork code never executes on the self-hosted runners. A job skipped
|
||||
# by a job-level `if` reports no status, so requiring those job names directly
|
||||
# leaves fork PRs stuck on "Expected - waiting for status to be reported"
|
||||
# forever. Requiring this gate instead keeps the contract satisfiable:
|
||||
# - trusted PR: gate is green only if every gated job actually succeeded
|
||||
# - fork PR: gated jobs skip, gate reports green so the PR is mergeable
|
||||
# (fork code is still reviewed by a maintainer before merge)
|
||||
#
|
||||
# No checkout here: the gate only inspects upstream job results, so it runs no
|
||||
# third-party code and is safe on the self-hosted runner.
|
||||
ci-gate:
|
||||
if: always()
|
||||
needs: [validate, build, test]
|
||||
runs-on: [self-hosted, linux, x64]
|
||||
name: CI Gate
|
||||
steps:
|
||||
- name: Verify gated jobs did not fail
|
||||
env:
|
||||
VALIDATE: ${{ needs.validate.result }}
|
||||
BUILD: ${{ needs.build.result }}
|
||||
TEST: ${{ needs.test.result }}
|
||||
run: |
|
||||
echo "validate=$VALIDATE build=$BUILD test=$TEST"
|
||||
for result in "$VALIDATE" "$BUILD" "$TEST"; do
|
||||
if [ "$result" = "failure" ] || [ "$result" = "cancelled" ]; then
|
||||
echo "[X] A required CI job did not pass (result: $result)"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
echo "[OK] CI gate satisfied (success or skipped-for-fork)"
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@kaitranntt/ccs",
|
||||
"version": "8.1.4-dev.4",
|
||||
"version": "8.1.4-dev.6",
|
||||
"description": "Claude Code Switch - Instant profile switching between Claude, GLM, Kimi, and more",
|
||||
"keywords": [
|
||||
"cli",
|
||||
|
||||
Reference in new issue
Block a user