Skip to content

Commit

Permalink
fix: Add a common check to use as a required check
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolaj-krzyzanowski-f3 committed Oct 9, 2024
1 parent 9df1663 commit 0234967
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,41 @@ jobs:
with:
images-artifact-name: ${{ needs.build-targets.outputs.images-artifact-name }}

pass:
if: always()
needs:
- changed-files
- unit-test
- integration-test
- e2e-test
name: All Checks Pass
runs-on: ubuntu-20.04
steps:
- run: |
result="${{ needs.changed-files.result }}"
if [[ ! $result == "success" ]]; then
echo "changed-files has failed"
exit 1
fi
result="${{ needs.unit-test.result }}"
if [[ ! $result == "success" || $result == "skipped"]]; then
echo "unit-test has failed"
exit 1
fi
result="${{ needs.integration-test.result }}"
if [[ ! $result == "success" || $result == "skipped"]]; then
echo "integration-test has failed"
exit 1
fi
result="${{ needs.e2e-test.result }}"
if [[ ! $result == "success" || $result == "skipped"]]; then
echo "e2e-test has failed"
exit 1
fi
release:
runs-on: ubuntu-20.04
needs: [calculate-tag, build-targets]
Expand Down

0 comments on commit 0234967

Please sign in to comment.