diff --git a/.github/workflows/VeniceCI-StaticAnalysisAndUnitTests.yml b/.github/workflows/VeniceCI-StaticAnalysisAndUnitTests.yml index 106ee254f3..6f08324643 100644 --- a/.github/workflows/VeniceCI-StaticAnalysisAndUnitTests.yml +++ b/.github/workflows/VeniceCI-StaticAnalysisAndUnitTests.yml @@ -106,11 +106,25 @@ jobs: runs-on: ubuntu-latest needs: [ValidateGradleWrapper, StaticAnalysis, UnitTestsAndCodeCoverage] timeout-minutes: 120 + if: success() || failure() # Always run this job, regardless of previous job status steps: - - name: AllIsWell - shell: bash + - name: Check previous job statuses run: | - echo "LGTM!" + if [ "${{ needs.ValidateGradleWrapper.result }}" != "success" ]; then + echo "ValidateGradleWrapper failed." + exit 1 + fi + if [ "${{ needs.StaticAnalysis.result }}" != "success" ]; then + echo "StaticAnalysis failed." + exit 1 + fi + if [ "${{ needs.UnitTestsAndCodeCoverage.result }}" != "success" ]; then + echo "UnitTestsAndCodeCoverage failed." + exit 1 + fi + # If all previous jobs were successful, proceed + - name: Final Completion Check + run: echo "All checks passed successfully!" diff --git a/.gitignore b/.gitignore index 77dc929bbc..992fbb6e90 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,4 @@ _site/ Gemfile.lock .bundles_cache docs/vendor/ +clients/da-vinci-client/classHash*.txt