Skip to content

Commit

Permalink
Attempt 4 to fix correct job failure reporting on run-accessability t…
Browse files Browse the repository at this point in the history
…esting step failures
  • Loading branch information
mluypaert committed Jan 26, 2024
1 parent 9522c49 commit ae20125
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/PR-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@ jobs:
if: ${{ steps.test-ui-accessability.outcome == 'failure' || steps.test-api-accessability.outcome == 'failure' }}
run: |
docker logs wormbase-names-test
- name: Report accessibility test failures
- name: Report UI accessibility test failures
if: ${{ steps.test-ui-accessability.outcome == 'failure' }}
run: |
echo "UI accessability test step failed."
- name: Report API accessibility test failures
if: ${{ steps.test-api-accessability.outcome == 'failure' }}
run: |
echo "API accessability test step failed."
- name: Fail if either accessibility test fails
if: ${{ steps.test-ui-accessability.outcome == 'failure' || steps.test-api-accessability.outcome == 'failure' }}
run: echo "::setFailed title=Accessability tests failed::UI and/or API accessability tests failed."
run: |
exit 1

0 comments on commit ae20125

Please sign in to comment.