forked from upstream-mirrors/OpenTracks
038e8d3e06
The AdoptOpenJDK has been discontinued since July 2021. When using Zulu you get all the latest updated (TCK Tested) builds for all versions of OpenJDK.
38 lines
926 B
YAML
38 lines
926 B
YAML
#https://github.com/marketplace/actions/android-emulator-runner
|
|
name: Test
|
|
on: [ push ]
|
|
jobs:
|
|
test:
|
|
timeout-minutes: 45
|
|
runs-on: macos-latest
|
|
strategy:
|
|
matrix:
|
|
api-level: [ 23, 26 ] #TODO Re-enable 29
|
|
target: [ default ]
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v2.3.4
|
|
|
|
- uses: actions/setup-java@v2
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: '11'
|
|
|
|
- name: run tests
|
|
uses: reactivecircus/android-emulator-runner@v2.20.0
|
|
with:
|
|
api-level: ${{ matrix.api-level }}
|
|
target: ${{ matrix.target }}
|
|
arch: x86_64
|
|
profile: Nexus 6
|
|
script: ./gradlew connectedCheck
|
|
|
|
- name: Archive
|
|
if: always()
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: code-coverage-report
|
|
path: build/reports/androidTests/
|
|
retention-days: 7
|
|
|