Skip to content

Commit

Permalink
Add Github actions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ekigamba committed May 24, 2021
1 parent ea5d265 commit 805c8be
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
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

0 comments on commit 805c8be

Please sign in to comment.