mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-09 07:16:04 -04:00
moving to single coverage file and remove code coverage to 30
This commit is contained in:
parent
005f250096
commit
ab7f922930
@ -15,7 +15,7 @@ jobs:
|
|||||||
coverageReport:
|
coverageReport:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
api-level: [21]
|
api-level: [21,30]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
runs-on: macos-10.15
|
runs-on: macos-10.15
|
||||||
steps:
|
steps:
|
||||||
@ -23,16 +23,18 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
env:
|
|
||||||
GRADLE_OPTS: "-Dorg.gradle.internal.http.connectionTimeout=60000 -Dorg.gradle.internal.http.socketTimeout=60000 -Dorg.gradle.internal.network.retry.max.attempts=6 -Dorg.gradle.internal.network.retry.initial.backOff=2000"
|
|
||||||
- name: create instrumentation coverage
|
- name: create instrumentation coverage
|
||||||
uses: ReactiveCircus/android-emulator-runner@v2.23.0
|
uses: ReactiveCircus/android-emulator-runner@v2.23.0
|
||||||
|
env:
|
||||||
|
GRADLE_OPTS: "-Dorg.gradle.internal.http.connectionTimeout=60000 -Dorg.gradle.internal.http.socketTimeout=60000 -Dorg.gradle.internal.network.retry.max.attempts=6 -Dorg.gradle.internal.network.retry.initial.backOff=2000"
|
||||||
with:
|
with:
|
||||||
api-level: ${{ matrix.api-level }}
|
api-level: ${{ matrix.api-level }}
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
ndk: 21.4.7075529
|
ndk: 21.4.7075529
|
||||||
script: bash contrib/instrumentation.sh
|
script: bash contrib/instrumentation.sh
|
||||||
|
|
||||||
|
|
||||||
- name: Upload screenshot result
|
- name: Upload screenshot result
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
if: failure()
|
if: failure()
|
||||||
@ -41,15 +43,17 @@ jobs:
|
|||||||
path: screencap.png
|
path: screencap.png
|
||||||
|
|
||||||
- name: create unit coverage
|
- name: create unit coverage
|
||||||
|
if: ${{ matrix.api-level==21 }}
|
||||||
run: ./gradlew jacocoTestDebugUnitTestReport jacocoTestCustomExampleDebugUnitTestReport
|
run: ./gradlew jacocoTestDebugUnitTestReport jacocoTestCustomExampleDebugUnitTestReport
|
||||||
|
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
|
if: ${{ matrix.api-level==21 }}
|
||||||
run: |
|
run: |
|
||||||
bash <(curl -s https://codecov.io/bash)
|
bash <(curl -s https://codecov.io/bash)
|
||||||
|
|
||||||
- name: Upload Coverage to GH-Actions
|
- name: Upload Coverage to GH-Actions
|
||||||
uses: actions/upload-artifact@v2.2.0
|
uses: actions/upload-artifact@v2.2.0
|
||||||
if: ${{ always() }}
|
if: ${{ matrix.api-level==21 }}
|
||||||
with:
|
with:
|
||||||
name: Tests Coverage Report
|
name: Tests Coverage Report
|
||||||
path: |
|
path: |
|
44
.github/workflows/coverage_api30_request.yml
vendored
44
.github/workflows/coverage_api30_request.yml
vendored
@ -1,44 +0,0 @@
|
|||||||
name: Coverage Reporting
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
- develop
|
|
||||||
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- '**'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
|
|
||||||
coverageReport:
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
api-level: [30]
|
|
||||||
fail-fast: false
|
|
||||||
runs-on: macos-10.15
|
|
||||||
steps:
|
|
||||||
- name: checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
fetch-depth: 1
|
|
||||||
env:
|
|
||||||
GRADLE_OPTS: "-Dorg.gradle.internal.http.connectionTimeout=60000 -Dorg.gradle.internal.http.socketTimeout=60000 -Dorg.gradle.internal.network.retry.max.attempts=6 -Dorg.gradle.internal.network.retry.initial.backOff=2000"
|
|
||||||
- name: create instrumentation coverage
|
|
||||||
uses: ReactiveCircus/android-emulator-runner@v2.23.0
|
|
||||||
with:
|
|
||||||
api-level: ${{ matrix.api-level }}
|
|
||||||
arch: x86_64
|
|
||||||
ndk: 21.4.7075529
|
|
||||||
script: bash contrib/instrumentation.sh
|
|
||||||
|
|
||||||
- name: Upload screenshot result
|
|
||||||
uses: actions/upload-artifact@v1
|
|
||||||
if: failure()
|
|
||||||
with:
|
|
||||||
name: ${{ matrix.api-level }}
|
|
||||||
path: screencap.png
|
|
||||||
|
|
||||||
- name: create unit coverage
|
|
||||||
run: ./gradlew jacocoTestDebugUnitTestReport jacocoTestCustomExampleDebugUnitTestReport
|
|
Loading…
x
Reference in New Issue
Block a user