forked from kiwix/kiwix-android
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.07 KB
/
coverage.yml
File metadata and controls
47 lines (39 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Coverage Reporting
on:
push:
branches:
- master
- develop
pull_request:
branches:
- '**'
jobs:
coverageReport:
strategy:
matrix:
api-level: [21, 21]
fail-fast: false
runs-on: macOS-latest
steps:
- name: checkout
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: create instrumentation coverage
uses: ReactiveCircus/android-emulator-runner@v2.8.0
with:
api-level: ${{ matrix.api-level }}
arch: x86_64
ndk: 21.3.6528147
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
- name: Upload coverage to Codecov
run: |
bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }}