diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2023-05-20 15:05:47 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2023-05-20 23:50:39 +0530 |
commit | e96f8165016a4279a9bb0323538004e4bbeaeb02 (patch) | |
tree | 49e4b13ed73c2f7f0cfd3337f50d7e50a037b092 /.github/workflows/pull_request.yml | |
parent | 0d09db3d7667bbc5bbb885de3e8f5dba9d285700 (diff) |
fix(github): force-accept all Android SDK licenses
Diffstat (limited to '.github/workflows/pull_request.yml')
-rw-r--r-- | .github/workflows/pull_request.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 8978f14c..d7039010 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -50,6 +50,11 @@ jobs: - name: Copy CI gradle.properties run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties + - name: Accept all SDK licenses + continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error + shell: bash + run: yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses + - name: Check codestyle uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 with: @@ -81,6 +86,11 @@ jobs: - name: Copy CI gradle.properties run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties + - name: Accept all SDK licenses + continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error + shell: bash + run: yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses + - name: Run unit tests uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 with: @@ -119,6 +129,11 @@ jobs: - name: Copy CI gradle.properties run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties + - name: Accept all SDK licenses + continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error + shell: bash + run: yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses + - name: Build debug APKs uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 with: @@ -150,6 +165,11 @@ jobs: - name: Copy CI gradle.properties run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties + - name: Accept all SDK licenses + continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error + shell: bash + run: yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses + - name: Check library API uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 with: @@ -181,6 +201,11 @@ jobs: - name: Copy CI gradle.properties run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties + - name: Accept all SDK licenses + continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error + shell: bash + run: yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses + - name: Run Lint on debug variants uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 with: @@ -212,6 +237,11 @@ jobs: - name: Copy CI gradle.properties run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties + - name: Accept all SDK licenses + continue-on-error: true # GitHub Actions' stdout handling causes a harmless 'broken pipe' error + shell: bash + run: yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses + - name: Run Lint uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # v2.4.2 with: |