diff --git a/.github/workflows/_base-migration.yml b/.github/workflows/_base-migration.yml index 34ae071f27..bd67f46b7c 100644 --- a/.github/workflows/_base-migration.yml +++ b/.github/workflows/_base-migration.yml @@ -121,11 +121,24 @@ jobs: cat $f done - # TIP: Use these for checks, e.g. Server / Migration / Success + # TIP: Use these for checks, e.g. Migration / Success success: name: Success needs: [migration-test] + if: always() runs-on: ubuntu-latest steps: - - name: Passed - run: "echo Skipped" + - name: Migration '${{ needs.migration-test.result }}' + shell: python + run: | + stati = [ + '${{ needs.migration-test.result }}', + ] + + nopass = ["failure", "cancelled"] + dopass = ["success", "skipped"] + if any(r in nopass for r in stati): + exit(1) + if all(r in dopass for r in stati): + exit(0) + exit(1) diff --git a/.github/workflows/_base-server-tests.yml b/.github/workflows/_base-server-tests.yml index d071f78162..5d8b232598 100644 --- a/.github/workflows/_base-server-tests.yml +++ b/.github/workflows/_base-server-tests.yml @@ -37,7 +37,6 @@ jobs: run: | echo "Evolution towards a set of (fast) unit tests which run without a DB connection is being planned" gen-idx-integration: - needs: unit-test name: Gen Integration Test Matrix runs-on: ubuntu-latest outputs: @@ -164,8 +163,22 @@ jobs: success: name: Success needs: [unit-test, integration-test] + if: always() runs-on: ubuntu-latest steps: - - name: Passed - run: "echo Skipped" + - name: Unit '${{ needs.unit-test.result }}' / Integration '${{ needs.integration-test.result }}' + shell: python + run: | + stati = [ + '${{ needs.unit-test.result }}', + '${{ needs.integration-test.result }}', + ] + + nopass = ["failure", "cancelled"] + dopass = ["success", "skipped"] + if any(r in nopass for r in stati): + exit(1) + if all(r in dopass for r in stati): + exit(0) + exit(1) diff --git a/.github/workflows/_base-ui-tests.yml b/.github/workflows/_base-ui-tests.yml index 21c0717685..33d81befd5 100644 --- a/.github/workflows/_base-ui-tests.yml +++ b/.github/workflows/_base-ui-tests.yml @@ -151,8 +151,20 @@ jobs: success: name: Success needs: [ui-test] + if: always() runs-on: ubuntu-latest steps: - - name: Passed - run: "echo Skipped" + - name: UI Test '${{ needs.ui-test.result }}' + shell: python + run: | + stati = [ + '${{ needs.ui-test.result }}', + ] + nopass = ["failure", "cancelled"] + dopass = ["success", "skipped"] + if any(r in nopass for r in stati): + exit(1) + if all(r in dopass for r in stati): + exit(0) + exit(1)