ci: remove instrumentationTest step and run action on ubuntu-latest

Signed-off-by: Aditya Wasan <adityawasan55@gmail.com>
This commit is contained in:
Aditya Wasan 2021-05-22 18:47:09 +05:30 committed by Harsh Shandilya
parent 1583c4c600
commit d9d18069ab
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -3,10 +3,7 @@ on: [pull_request]
name: Check pull request
jobs:
test-pr:
runs-on: macos-latest
strategy:
matrix:
api-level: [23, 29]
runs-on: ubuntu-latest
steps:
#- name: Auto-cancel redundant workflow run
@ -59,15 +56,6 @@ jobs:
with:
arguments: apiCheck testFreeDebug lintFreeDebug spotlessCheck
- name: Run instrumentation tests
if: ${{ steps.service-changed.outputs.result == 'true' }}
uses: reactivecircus/android-emulator-runner@599839e4285455fff52cd8e3614575e02f1b673f
with:
api-level: ${{ matrix.api-level }}
target: default
script: |
./gradlew :app:connectedFreeDebugAndroidTest
- name: (Fail-only) upload test report
if: failure()
uses: actions/upload-artifact@e448a9b857ee2131e752b06002bf0e093c65e571