Skip to content

Commit 2fe064b

Browse files
fix: Add a common check to use as a required check
1 parent 9df1663 commit 2fe064b

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,41 @@ jobs:
4242
with:
4343
images-artifact-name: ${{ needs.build-targets.outputs.images-artifact-name }}
4444

45+
pass:
46+
if: always()
47+
needs:
48+
- changed-files
49+
- unit-test
50+
- integration-test
51+
- e2e-test
52+
name: All Checks Pass
53+
runs-on: ubuntu-20.04
54+
steps:
55+
- run: |
56+
result="${{ needs.changed-files.result }}"
57+
if [[ ! $result == "success" ]]; then
58+
echo "changed-files has failed"
59+
exit 1
60+
fi
61+
62+
result="${{ needs.unit-test.result }}"
63+
if [[ ! ($result == "success" || $result == "skipped") ]]; then
64+
echo "unit-test has failed"
65+
exit 1
66+
fi
67+
68+
result="${{ needs.integration-test.result }}"
69+
if [[ ! ($result == "success" || $result == "skipped") ]]; then
70+
echo "integration-test has failed"
71+
exit 1
72+
fi
73+
74+
result="${{ needs.e2e-test.result }}"
75+
if [[ ! ($result == "success" || $result == "skipped") ]]; then
76+
echo "e2e-test has failed"
77+
exit 1
78+
fi
79+
4580
release:
4681
runs-on: ubuntu-20.04
4782
needs: [calculate-tag, build-targets]

0 commit comments

Comments
 (0)