-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 968 Bytes
/
android_ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Android CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
# runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
- name: Build and run tests
run: ./gradlew build test
- name: Generate coverage report
run: ./gradlew jacocoTestReport
- name: Add coverage to PR
id: jacoco
uses: takumi-saito/jacoco-report@v1.7
with:
paths: ${{ github.workspace }}/app/build/reports/jacocoTestReport/jacocoTestReport.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 40
min-coverage-changed-files: 60
merge-block: false
debug-mode: true