aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/pull_request.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/pull_request.yml')
-rw-r--r--.github/workflows/pull_request.yml30
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: