Skip to content

Commit 542efe2

Browse files
committed
coverage report added
1 parent 1edc909 commit 542efe2

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/gradle.yml

+6
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,17 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v2
19+
-
1920
- name: Set up JDK 1.8
2021
uses: actions/setup-java@v1
2122
with:
2223
java-version: 1.8
24+
2325
- name: Grant execute permission for gradlew
2426
run: chmod +x gradlew
27+
2528
- name: Build with Gradle
2629
run: ./gradlew build
30+
31+
- name: Codacy Coverage Reporter
32+
uses: codacy/[email protected]

build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ group 'io.visual-regression-tracker.sdk-java'
22
version '3.1.0'
33

44
apply plugin: 'java'
5+
apply plugin: 'jacoco'
56
apply plugin: "io.freefair.lombok"
67
apply plugin: "com.github.johnrengelman.shadow"
78

@@ -34,4 +35,5 @@ dependencies {
3435

3536
test {
3637
useTestNG()
38+
finalizedBy jacocoTestReport // report is always generated after tests run
3739
}

lombok.config

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# This file is generated by the 'io.freefair.lombok' Gradle plugin
22
config.stopBubbling = true
3+
lombok.addLombokGeneratedAnnotation = true

0 commit comments

Comments
 (0)