From de0ddbe766447eb707db54e52a896930813f889c Mon Sep 17 00:00:00 2001 From: Wojtek Zieba Date: Sun, 1 Oct 2023 16:21:53 +0200 Subject: [PATCH] tests: add test case for action outputs --- .github/workflows/main.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c69f93c..dda368f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,12 +9,27 @@ 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: | + 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: