Skip to content

Commit 1dcbdf0

Browse files
authored
Codecov (#190)
* Closes #188 * Closes #188 * Closes #188 * codecov fix * codecov fix
1 parent 723f696 commit 1dcbdf0

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,8 @@ jobs:
5151
- name: Run Test Coverage
5252
run: ./gradlew jacocoTestReport
5353

54-
- name: Generate JaCoCo Badge
55-
id: jacoco
56-
uses: cicirello/[email protected]
57-
with:
58-
jacoco-csv-file: build/reports/jacoco/test/jacocoTestReport.csv
59-
60-
- name: Log coverage percentage
61-
run: |
62-
echo "coverage = ${{ steps.jacoco.outputs.coverage }}"
63-
echo "branch coverage = ${{ steps.jacoco.outputs.branches }}"
64-
6554
- name: Upload coverage reports to Codecov
66-
uses: codecov/codecov-action@v4.0.1
67-
env:
55+
uses: codecov/codecov-action@v4
56+
with:
6857
token: ${{ secrets.CODECOV_TOKEN }}
6958
slug: xpathqs/core

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ tasks.jar {
159159

160160
tasks.jacocoTestReport {
161161
reports {
162-
xml.isEnabled = false
163-
csv.isEnabled = true
162+
xml.required.set(true)
163+
html.required.set(false)
164164
}
165165
}
166166

0 commit comments

Comments
 (0)