Merge branch 'NightscoutFoundation:master' into master #531
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
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 |