diff --git a/.github/workflows/app-verify.yml b/.github/workflows/app-verify.yml index 6aa01141..b4541386 100644 --- a/.github/workflows/app-verify.yml +++ b/.github/workflows/app-verify.yml @@ -160,6 +160,7 @@ jobs: id: emulator-settings env: GITHUB_REF: ${{ github.ref }} + SKIP_CYPRESS_RECORDING: ${{ secrets.SKIP_CYPRESS_RECORDING }} run: | gitBranch=${GITHUB_REF##*/} gcloudProject=$(cat .firebaserc | jq -r --arg branch "$gitBranch" '.projects[$branch] // .projects.master') @@ -169,11 +170,19 @@ jobs: echo "::set-env name=FIREBASE_DATABASE_EMULATOR_HOST::localhost:$(cat firebase.json | jq .emulators.database.port)" echo "::set-env name=FIRESTORE_EMULATOR_HOST::localhost:$(cat firebase.json | jq .emulators.firestore.port)" echo "::set-env name=CYPRESS_BASE_URL::http://localhost:$(cat package.json | jq .config.port)" + + # Skip recording of Cypress results if flag is set in secrets + echo "::set-env name=RECORD_CYPRESS_RESULTS::$(if [ -z "$SKIP_CYPRESS_RECORDING" ] ; then echo false; else echo true; fi;)" echo "Generating Service Account File..." echo "$(echo $SERVICE_ACCOUNT | jq .)" > $HOME/serviceAccount.json echo "::set-env name=GOOGLE_APPLICATION_CREDENTIALS::$HOME/serviceAccount.json" + - name: Print CI Env Variables + run: | + echo Available ENV vars: + env | sort + - name: Download Build Artifact uses: actions/download-artifact@v2 with: @@ -189,7 +198,7 @@ jobs: with: browser: chrome parallel: true - record: true + record: ${{ env.RECORD_CYPRESS_RESULTS }} headless: true group: 'UI Integration Tests' tag: emulated