Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run instrumentation tests on API 30 instead of 29 #1130

Merged
merged 2 commits into from
Feb 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

strategy:
matrix:
api-level: [ 24, 27, 29 ]
api-level: [ 24, 27, 30 ]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Cancel previous
Expand Down Expand Up @@ -77,11 +77,11 @@ jobs:
${{ runner.os }}-gradlebuildcache-

- name: Spotless check
if: matrix.api-level == 29 # don't spotless on older APIs
if: matrix.api-level == 30 # don't spotless on older APIs
run: ./gradlew spotlessCheck

- name: Build
if: matrix.api-level == 29 # don't run full build on older APIs
if: matrix.api-level == 30 # don't run full build on older APIs
run: ./gradlew build

- name: Run instrumentation tests
Expand All @@ -92,15 +92,15 @@ jobs:
script: ./gradlew connectedCheck --info

- name: Generate Jacoco test coverage reports
if: matrix.api-level == 29 # Only generate coverage report on API level 29
if: matrix.api-level == 30 # Only generate coverage report on API level 30
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
arch: x86_64
script: ./gradlew jacocoTestReport --info

- name: Upload Jacoco test coverage reports to codecov.io
if: matrix.api-level == 29 # Only upload coverage on API level 29
if: matrix.api-level == 30 # Only upload coverage on API level 30
uses: codecov/codecov-action@v2
with:
files: engine/build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml,datacapture/build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml,common/build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml
Expand Down