Skip to content

Commit

Permalink
Mark job as failed if tests fail
Browse files Browse the repository at this point in the history
  • Loading branch information
NavidMitchell committed Jan 27, 2025
1 parent 7edd6af commit 28747b5
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,6 @@ jobs:

- name: Checkout code
uses: actions/checkout@v4
# - uses: dorny/paths-filter@v3
# id: filter
# with:
# predicate-quantifier: 'every'
# filters: |
# java:
# - '**'
# - '!structures-js/**'
# js:
# - 'structures-js/**'

- name: Set up JDK
uses: actions/setup-java@v4
Expand Down Expand Up @@ -62,6 +52,7 @@ jobs:
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}

- name: Run E2E Tests
id: run_e2e_tests
continue-on-error: true
run: |
cd structures-js/structures-api
Expand Down Expand Up @@ -108,3 +99,9 @@ jobs:
state: 'success'
sha: ${{github.event.pull_request.head.sha || github.sha}}
target_url: https://kinotic-foundation.github.io/structures/allure/${{ github.run_number }}

- name: Check any Builds failed
if: ${{ steps.gradle_build.outcome == 'failure' || steps.run_e2e_tests.outcome == 'failure' }}
run: |
echo "Build or unit tests failed."
exit 1

0 comments on commit 28747b5

Please sign in to comment.