-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# This workflow will build a Java project with Gradle | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | ||
|
||
name: Android CI with Gradle | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
unit_tests: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Print Java version | ||
run: java -version | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Clean project | ||
run: ./gradlew clean --stacktrace | ||
- name: Build project skipping tests | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
with: | ||
api-level: 22 | ||
script: ./gradlew build -x test --stacktrace | ||
- name: Run jacocoTestReport for each module | ||
run: ./gradlew jacocoTestReport --stacktrace | ||
- name: Merge jacoco reports from all modules | ||
run: ./gradlew jacocoFullReport --stacktrace | ||
- name: Upload coverage to Coveralls with Gradle | ||
run: ./gradlew coveralls --stacktrace |