mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 04:13:53 +01:00
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:
parent
fea5abd802
commit
b1f06ad9bc
6 changed files with 69 additions and 6 deletions
7
.github/workflows/android.yml
vendored
7
.github/workflows/android.yml
vendored
|
|
@ -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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue