optimize upload run #361
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
on: | |
push: | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
paths-ignore: | |
- '**.md' | |
name: Run Test Cases | |
jobs: | |
test-on-mac: | |
runs-on: macos-12 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.ref }} | |
- name: Setup Java Version | |
uses: actions/setup-java@v2 | |
with: | |
java-version: 11 | |
distribution: temurin | |
cache: gradle | |
- name: Run Cases | |
uses: reactivecircus/android-emulator-runner@v2 | |
with: | |
api-level: 22 | |
profile: Nexus 6 | |
arch: x86_64 | |
script: | | |
./gradlew connectedCheck | |
./gradlew build | |
./gradlew :library:createDebugAndroidTestCoverageReport --info --stacktrace | |
./gradlew connectedAndroidTest --info --stacktrace | |
- name: Upload coverage.txt | |
run: | | |
bash <(curl -s https://codecov.io/bash) |