Test and verify coverage only on debug variant (#2556)
* Test and verify coverage only on debug variant * Set files to upload * Fix also nightlyReports flow
This commit is contained in:
parent
66db3bcf2f
commit
810c0ed8f3
4 changed files with 8 additions and 32 deletions
12
.github/workflows/tests.yml
vendored
12
.github/workflows/tests.yml
vendored
|
|
@ -48,14 +48,14 @@ jobs:
|
|||
with:
|
||||
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
|
||||
|
||||
- name: ⚙️ Run unit tests, debug and release
|
||||
run: ./gradlew test $CI_GRADLE_ARG_PROPERTIES
|
||||
- name: ⚙️ Run unit tests for debug variant
|
||||
run: ./gradlew testDebugUnitTest $CI_GRADLE_ARG_PROPERTIES
|
||||
|
||||
- name: 📸 Run screenshot tests
|
||||
run: ./gradlew verifyPaparazziDebug $CI_GRADLE_ARG_PROPERTIES
|
||||
|
||||
- name: 📈Generate kover report and verify coverage
|
||||
run: ./gradlew :app:koverHtmlReport :app:koverXmlReport :app:koverVerify $CI_GRADLE_ARG_PROPERTIES -Pci-build=true
|
||||
run: ./gradlew :app:koverXmlReportGplayDebug :app:koverHtmlReportGplayDebug :app:koverVerifyGplayDebug $CI_GRADLE_ARG_PROPERTIES
|
||||
|
||||
- name: 🚫 Upload kover failed coverage reports
|
||||
if: failure()
|
||||
|
|
@ -63,7 +63,7 @@ jobs:
|
|||
with:
|
||||
name: kover-error-report
|
||||
path: |
|
||||
app/build/reports/kover/verify.err
|
||||
app/build/reports/kover/verifyGplayDebug.err
|
||||
|
||||
- name: ✅ Upload kover report (disabled)
|
||||
if: always()
|
||||
|
|
@ -85,5 +85,5 @@ jobs:
|
|||
with:
|
||||
fail_ci_if_error: true
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
# with:
|
||||
# files: build/reports/kover/xml/report.xml
|
||||
files: app/build/reports/kover/reportGplayDebug.xml
|
||||
verbose: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue