Skip to content

Commit

Permalink
tests: add test case for action outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
wzieba committed Oct 1, 2023
1 parent 4058af7 commit 8ebcac2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,28 @@ jobs:
- name: Get sample .apk for test purposes
run: wget https://github.com/appium/appium/raw/1.10/sample-code/apps/ApiDemos-debug.apk
- name: Upload artifact to Firebase Distribution
id: testing_outputs
uses: ./
with:
appId: ${{secrets.FIREBASE_APP_ID}}
token: ${{secrets.FIREBASE_TOKEN}}
groups: Testers
file: ApiDemos-debug.apk
- name: Assert outputs of previous step are not empty
run: |
echo ${{steps.testing_outputs.outputs.FIREBASE_CONSOLE_URI}}
if [[ -z "${{ steps.testing_outputs.outputs.FIREBASE_CONSOLE_URI }}" ]]; then
echo "Console URI is empty" >&2
exit 1
fi
if [[ -z "${{ steps.testing_outputs.outputs.TESTING_URI }}" ]]; then
echo "Testing URI is empty" >&2
exit 1
fi
if [[ -z "${{ steps.testing_outputs.outputs.BINARY_DOWNLOAD_URI }}" ]]; then
echo "Binary download URI is empty" >&2
exit 1
fi
- name: Upload artifact to Firebase Distribution with release note file
uses: ./
with:
Expand Down

0 comments on commit 8ebcac2

Please sign in to comment.