diff --git a/.github/workflows/ci_levm.yaml b/.github/workflows/ci_levm.yaml index 7bb9a7eb2..5d4b0798a 100644 --- a/.github/workflows/ci_levm.yaml +++ b/.github/workflows/ci_levm.yaml @@ -18,6 +18,7 @@ env: jobs: ef-test: + if: ${{ github.event_name != 'merge_group' }} name: EF Tests Check runs-on: ubuntu-latest steps: @@ -66,6 +67,7 @@ jobs: # Check we don't have a regression against main hive-test: + if: ${{ github.event_name != 'merge_group' }} name: Hive Tests Check needs: hive-report-creation runs-on: ubuntu-latest @@ -107,6 +109,27 @@ jobs: exit 1 fi + # The purpose of this job is to add it as a required check in GitHub so that we don't have to add every individual job as a required check + all-tests: + # "Integration Test" is a required check, don't change the name + name: Integration Test + runs-on: ubuntu-latest + needs: [hive-test, ef-test] + # Make sure this job runs even if the previous jobs failed or were skipped + if: ${{ always() && needs.hive-test.result != 'skipped' && needs.ef-test.result != 'skipped' }} + steps: + - name: Check if any job failed + run: | + if [ "${{ needs.hive-test.result }}" != "success" ]; then + echo "Job Hive Tests Check failed" + exit 1 + fi + + if [ "${{ needs.ef-test.result }}" != "success" ]; then + echo "Job EF Tests Check failed" + exit 1 + fi + test: # "Test" is a required check, don't change the name name: Test