Update jacoco and github actions (#4639)

* Fix jacoco setup

* Fix task name

* Update CI yml file for codecov

* Fix syntax error

* Use all branch instead of just master

* Fix report upload issue

* Remove returnDefaultValues

* Add Github Action and Codecov badge
This commit is contained in:
Madhur Gupta 2021-09-20 18:09:54 +05:30 committed by GitHub
parent fea5abd802
commit b1f06ad9bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 69 additions and 6 deletions

View file

@ -1,7 +1,6 @@
name: Android CI
on:
push
on: [push, pull_request]
jobs:
build:
@ -14,4 +13,6 @@ jobs:
with:
java-version: 1.8
- name: Build with Gradle
run: ./gradlew -Pcoverage jacocoTestBetaDebugUnitTestReport
run: ./gradlew -Pcoverage testBetaDebugUnitTestCoverage
- name: Upload Test Report
run: bash <(curl -s https://codecov.io/bash) -f "app/build/reports/jacoco/testBetaDebugUnitTestCoverage/testBetaDebugUnitTestCoverage.xml"