forked from NightscoutFoundation/xDrip
-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (29 loc) · 963 Bytes
/
unit_test.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
name: Unit Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [ 11 ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java-version }}
distribution: adopt
- name: Run unit tests and assemble APKs
uses: gradle/gradle-build-action@v2
with:
arguments: assembleProdRelease testProdReleaseUnitTestCoverage
- name: Upload Coverage Report to Codecov
uses: codecov/codecov-action@v2
with:
verbose: true # optional (default = false)
files: app/build/reports/jacoco/testProdReleaseUnitTestCoverage/testProdReleaseUnitTestCoverage.xml,wear/build/reports/jacoco/testProdReleaseUnitTestCoverage/testProdReleaseUnitTestCoverage.xml
- name: Check Output
run: bash ./etc/CheckBuild/check-release.sh test