Created
March 14, 2023 23:10
-
-
Save mfebrianto/b6b5b31e5ac2c969708626eb6af67291 to your computer and use it in GitHub Desktop.
github action config for android with jacoco coverage test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jobs: | |
android: | |
name: android | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- name: Clone repo | |
uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew | |
- name: Run unit test with coverage check | |
run: ./gradlew app:jacocoTestCoverageVerification | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: android-widget-cov-report | |
path: build/app/reports/coverage/jacocoTestReportDebug/html/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment