Skip to content

Commit

Permalink
tests: add fail check in tests suite
Browse files Browse the repository at this point in the history
  • Loading branch information
wzieba committed Jun 26, 2023
1 parent 83e6de7 commit 6fbe704
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,23 @@ jobs:
testers: "test@test.com, test2@test2.com"
releaseNotesFile: README.md
file: ApiDemos-debug.apk
- name: Failure during upload should set failure in action step
id: fail_check
uses: ./
continue-on-error: true
with:
appId: invalid_app_id
token: ${{secrets.FIREBASE_TOKEN}}
testers: "test@test.com, test2@test2.com"
releaseNotesFile: README.md
file: ApiDemos-debug.apk
- name: Check if previous step failed as expected
run: |
if [[ "${{ steps.fail_check.outcome }}" == 'failure' ]]; then
echo "Previous step failed as expected"
exit 0
else
echo "Previous step succeeded, when it shouldn't"
exit 1
fi

0 comments on commit 6fbe704

Please sign in to comment.