Skip to content

Commit a12c430

Browse files
add codecov
1 parent 51ffa76 commit a12c430

9 files changed

Lines changed: 26 additions & 1060 deletions

File tree

.github/workflows/pr.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,11 @@ jobs:
3131
run: ./gradlew build
3232
- name: Run Tests
3333
id: tests
34-
run: ./gradlew test
34+
run: ./gradlew jacocoTestReport
35+
- name: Codecov
36+
uses: codecov/codecov-action@v2.1.0
37+
with:
38+
token: ${{ secrets.CODECOV_REPO_UPLOAD_TOKEN }}
39+
files: Skyflow/build/jacoco/jacoco.xml
40+
name: codecov-skyflow-android
41+
verbose: true

Skyflow/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ plugins {
44
id 'maven-publish'
55
}
66
apply plugin: 'kotlin-android'
7+
apply plugin: "com.dicedmelon.gradle.jacoco-android"
8+
79
//group='com.github.skyflowapi'
810
//version = rootProject.ext.versionName
911
ext {
@@ -41,8 +43,14 @@ android {
4143
minifyEnabled false
4244
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
4345
}
46+
debug {
47+
testCoverageEnabled true
48+
}
4449

4550
}
51+
buildFeatures {
52+
dataBinding = true
53+
}
4654
compileOptions {
4755
sourceCompatibility JavaVersion.VERSION_1_8
4856
targetCompatibility JavaVersion.VERSION_1_8

0 commit comments

Comments
 (0)