diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 22419da6dc..17ebb3c353 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -74,6 +74,23 @@ jobs: - name: Check with Gradle run: ./gradlew check --scan --full-stacktrace + - name: Package (build) APKs for Device UI Tests + # TODO(vorburger) Are both the Debug *AND* Release packages actually required for Device UI Tests? + # TODO(vorburger) Could building these be parallelized? Can Gradle do that, if invoked differently, or should we parallelize with Bash? + run: ./gradlew packageDebugAndroidTest --scan --stacktrace && ./gradlew packageReleaseAndroidTest --scan --stacktrace + + - id: auth + name: Authenticate to Google Cloud + uses: google-github-actions/auth@v1 + # NB: actions/checkout must be before google-github-actions/auth + with: + credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}' + + - name: Run Device UI Tests on Firebase Test Lab with Flank + # TODO(vorburger) Run all modules (not just engine:), like in //kokoro/gcp_ubuntu/kokoro_build.sh + # TODO(vorburger) Parallelize and Bash `wait` as in kokoro_build.sh, or just run sequentially?! + run: ./gradlew :engine:runFlank --scan --stacktrace + - name: Release artifacts to local repo run: ./gradlew publishReleasePublicationToCIRepository --scan - name: Upload maven repo