Skip to content

Commit c142f89

Browse files
committed
Add CI summary job to the github workflows
Signed-off-by: divyansh42 <diagrawa@redhat.com>
1 parent 40a7331 commit c142f89

3 files changed

Lines changed: 438 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,39 @@ jobs:
9696
e2e-tests:
9797
needs: [build]
9898
uses: ./.github/workflows/e2e-matrix.yml
99+
100+
ci-summary:
101+
name: CI summary
102+
if: always()
103+
needs:
104+
- build
105+
- linting
106+
- tests
107+
- generated
108+
- multi-arch-build
109+
- e2e-tests
110+
runs-on: ubuntu-latest
111+
steps:
112+
- name: Check job results
113+
run: |
114+
echo "build: ${{ needs.build.result }}"
115+
echo "linting: ${{ needs.linting.result }}"
116+
echo "tests: ${{ needs.tests.result }}"
117+
echo "generated: ${{ needs.generated.result }}"
118+
echo "multi-arch-build: ${{ needs.multi-arch-build.result }}"
119+
echo "e2e-tests: ${{ needs.e2e-tests.result }}"
120+
results=(
121+
"${{ needs.build.result }}"
122+
"${{ needs.linting.result }}"
123+
"${{ needs.tests.result }}"
124+
"${{ needs.generated.result }}"
125+
"${{ needs.multi-arch-build.result }}"
126+
"${{ needs.e2e-tests.result }}"
127+
)
128+
for result in "${results[@]}"; do
129+
if [[ "$result" != "success" && "$result" != "skipped" ]]; then
130+
echo "One or more jobs failed"
131+
exit 1
132+
fi
133+
done
134+
echo "All jobs passed or were skipped"

vendor/github.com/alibabacloud-go/cr-20160607/LICENSE

Lines changed: 201 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)