Skip to content

Commit

Permalink
Merge pull request #34 from square/helios175/ci_instrumentation-1
Browse files Browse the repository at this point in the history
Add CI to allow instrumentation tests
  • Loading branch information
helios175 committed Apr 20, 2021
2 parents f2e4864 + 204542d commit 591ab4f
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,36 @@ jobs:
java-version: 11
- name: Build with Gradle
run: ./gradlew build

instrumentation-tests:
name: Instrumentation tests
runs-on: macos-latest
timeout-minutes: 20
strategy:
# Allow tests to continue on other devices if they fail on one device.
fail-fast: false
matrix:
api-level:
- 21
- 23
- 26
- 29
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Instrumentation Tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
arch: x86_64
script: ./gradlew connectedCheck --no-build-cache --no-daemon --stacktrace

- name: Upload results
uses: actions/upload-artifact@v2
with:
name: insrumentation-test-results
path: ./**/build/reports/androidTests/connected/**

0 comments on commit 591ab4f

Please sign in to comment.