Prevent ANR during SDK initialization #1002
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR build | |
on: pull_request | |
jobs: | |
pr-checks: | |
name: "pr-checks" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK for running Gradle | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: touch local props | |
run: touch demo-app/local.properties | |
- name: run gradle | |
run: ./gradlew check | |
- name: build demo app | |
working-directory: ./demo-app | |
run: ./gradlew check assemble | |
required-status-check: | |
needs: | |
- pr-checks | |
runs-on: ubuntu-latest | |
if: always() | |
steps: | |
- if: | | |
needs.pr-checks.result != 'success' | |
run: exit 1 |