mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-12 18:15:48 +00:00
fix(ci): include compose parity in CI Gate (#1614)
This commit is contained in:
1 parent
23b2c3d6af
commit
58a90d3633
1 file changed
+5
-4
@@ -163,7 +163,7 @@ jobs:
|
|||||||
|
|
||||||
# Single always-reporting status that branch protection requires.
|
# Single always-reporting status that branch protection requires.
|
||||||
#
|
#
|
||||||
# The validate/build/test jobs are gated to trusted author associations so
|
# The validate/build/test/compose-parity jobs are gated to trusted author associations so
|
||||||
# untrusted fork code never executes on the self-hosted runners. A job skipped
|
# 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
|
# 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"
|
# leaves fork PRs stuck on "Expected - waiting for status to be reported"
|
||||||
@@ -176,7 +176,7 @@ jobs:
|
|||||||
# third-party code and is safe on the self-hosted runner.
|
# third-party code and is safe on the self-hosted runner.
|
||||||
ci-gate:
|
ci-gate:
|
||||||
if: always()
|
if: always()
|
||||||
needs: [validate, build, test]
|
needs: [validate, build, test, compose-parity]
|
||||||
runs-on: [self-hosted, linux, x64]
|
runs-on: [self-hosted, linux, x64]
|
||||||
name: CI Gate
|
name: CI Gate
|
||||||
steps:
|
steps:
|
||||||
@@ -185,9 +185,10 @@ jobs:
|
|||||||
VALIDATE: ${{ needs.validate.result }}
|
VALIDATE: ${{ needs.validate.result }}
|
||||||
BUILD: ${{ needs.build.result }}
|
BUILD: ${{ needs.build.result }}
|
||||||
TEST: ${{ needs.test.result }}
|
TEST: ${{ needs.test.result }}
|
||||||
|
COMPOSE_PARITY: ${{ needs.compose-parity.result }}
|
||||||
run: |
|
run: |
|
||||||
echo "validate=$VALIDATE build=$BUILD test=$TEST"
|
echo "validate=$VALIDATE build=$BUILD test=$TEST compose-parity=$COMPOSE_PARITY"
|
||||||
for result in "$VALIDATE" "$BUILD" "$TEST"; do
|
for result in "$VALIDATE" "$BUILD" "$TEST" "$COMPOSE_PARITY"; do
|
||||||
if [ "$result" = "failure" ] || [ "$result" = "cancelled" ]; then
|
if [ "$result" = "failure" ] || [ "$result" = "cancelled" ]; then
|
||||||
echo "[X] A required CI job did not pass (result: $result)"
|
echo "[X] A required CI job did not pass (result: $result)"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in new issue
Block a user