name: Run tests on: [push, pull_request] jobs: test: runs-on: macos-latest steps: - name: checkout uses: actions/checkout@v2 - name: Set up JDK 11 uses: actions/setup-java@v1 with: java-version: '11.0.8' - name: run tests uses: reactivecircus/android-emulator-runner@v2 with: api-level: 29 script: ./gradlew -Pcoverage :app:jacocoTestReportGoogleplayDebug :app:createGoogleplayDebugAndroidTestCoverageReport - name: upload coverage uses: codecov/codecov-action@v1 with: directory: ./app/build