-
Notifications
You must be signed in to change notification settings - Fork 40
38 lines (33 loc) · 1.07 KB
/
android-code-coverage.yml
File metadata and controls
38 lines (33 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
name: nimblenet_ktx code coverage
on:
pull_request_review:
types: [submitted]
push:
branches:
- main
jobs:
build-and-test:
if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') }}
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: '17'
cache: gradle
- name: Build and Test
run: |
cd sdks/android
./gradlew :nimblenet_ktx:assembleExternalDebug
./gradlew :nimblenet_ktx:testExternalDebugUnitTest
./gradlew :nimblenet_ktx:jacocoTestReport
- name: Upload Coverage Reports
uses: actions/upload-artifact@v4
with:
name: coverage-reports
path: |
sdks/android/nimblenet_ktx/build/reports/jacoco/externalDebug/html
sdks/android/nimblenet_ktx/build/reports/jacoco/externalDebug/jacoco.xml