Skip to content

Instantly share code, notes, and snippets.

@mfebrianto
Created March 14, 2023 23:10
Show Gist options
  • Save mfebrianto/b6b5b31e5ac2c969708626eb6af67291 to your computer and use it in GitHub Desktop.
Save mfebrianto/b6b5b31e5ac2c969708626eb6af67291 to your computer and use it in GitHub Desktop.
github action config for android with jacoco coverage test
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