forked from upstream-mirrors/OpenTracks
8f9cbcc077
Fixes #1409.
45 lines
1.1 KiB
Plaintext
45 lines
1.1 KiB
Plaintext
# We have flaky test results due to performance limitations in Github Actions.
|
|
# Happens too often nowadays; See https://github.com/OpenTracksApp/OpenTracks/issues/1409
|
|
|
|
#https://github.com/marketplace/actions/android-emulator-runner
|
|
name: Test
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
timeout-minutes: 45
|
|
runs-on: macos-latest
|
|
strategy:
|
|
matrix:
|
|
api-level: [ 24, 30 ]
|
|
target: [ default ]
|
|
fail-fast: false
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-java@v3
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: '11'
|
|
|
|
- name: run tests
|
|
uses: reactivecircus/android-emulator-runner@v2.26.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@v3
|
|
with:
|
|
name: code-coverage-report
|
|
path: build/reports/androidTests/
|
|
retention-days: 7
|
|
|