Skip to content

Workflow file for this run

name: Run code coverage
on:
pull_request:
push:
branches:
- "develop"
- "main"
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: macos-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: "11"
distribution: "adopt"
cache: gradle
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Gradle cache
uses: gradle/gradle-build-action@v2
# Execute unit tests
- name: Unit Test with Android Emulator Runner
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
target: google_apis
script: ./gradlew connectedCheck
- name: generate report
uses: actions/upload-artifact@v2
with:
name: report
path: app/build/reports/coverage/debug