Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(build-test-tidy): introduce success condition jobs #9769

Merged
merged 15 commits into from
Dec 24, 2024
Prev Previous commit
Next Next commit
simplify
Signed-off-by: M. Fatih Cırıt <mfc@autoware.org>
xmfcx committed Dec 24, 2024
commit a9cdcebcc229c633f53a21df0e067aafc3e1874d
2 changes: 2 additions & 0 deletions .github/actions/evaluate-job-result/action.yaml
Original file line number Diff line number Diff line change
@@ -40,4 +40,6 @@ runs:
echo "::error::${{ inputs.job_name }} failed. ❌"
echo "- **${{ inputs.job_name }}:** failed ❌" >> "$GITHUB_STEP_SUMMARY"
echo "failed=true" >> "$GITHUB_OUTPUT"

exit 1
shell: bash
11 changes: 1 addition & 10 deletions .github/workflows/build-test-tidy-pr.yaml
Original file line number Diff line number Diff line change
@@ -80,23 +80,14 @@ jobs:
expected_results: success

- name: Evaluate build-and-test-differential-cuda
if: ${{ always() }}
id: eval_cuda
uses: ./.github/actions/evaluate-job-result
with:
job_result: ${{ needs.build-and-test-differential-cuda.result }}
job_name: build-and-test-differential-cuda
expected_results: success,skipped

- name: Final Status
run: |
if [[ "${{ steps.eval_diff.outputs.failed }}" == "true" || "${{ steps.eval_cuda.outputs.failed }}" == "true" ]]; then
echo "Some checks failed. ❌"
exit 1
else
echo "::notice::All checks passed successfully! ✅"
fi
shell: bash

clang-tidy-differential:
needs:
- check-if-cuda-job-is-needed