forked from PCGen/pcgen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enabled JaCoCo report, create an HTML artifact with the code coverage.
p.s. plans to use Coverals in future. Signed-off-by: Vest <[email protected]>
- Loading branch information
Showing
1 changed file
with
10 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,10 +48,13 @@ jobs: | |
build/jre | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
${{ runner.os }}-gradle | ||
- name: Build with Gradle Wrapper | ||
run: ./gradlew build test | ||
run: ./gradlew build | ||
|
||
- name: Run tests | ||
run: ./gradlew test slowtest | ||
|
||
- name: Publish Test Results | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
|
@@ -65,23 +68,21 @@ jobs: | |
- name: Run Coverage | ||
run: ./gradlew testCoverage | ||
|
||
- name: Upload Report | ||
- name: Upload Report to artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: report.xml | ||
path: ${{ github.workspace }}/build/reports/jacoco/testCoverage/testCoverage.xml | ||
name: testCoverage | ||
path: ${{ github.workspace }}/build/reports/jacoco/testCoverage/html | ||
|
||
- name: Jacoco Report to PR | ||
id: jacoco | ||
uses: madrapps/[email protected] | ||
if: always() | ||
with: | ||
paths: | | ||
${{ github.workspace }}/**/build/reports/jacoco/**/testCoverage.xml | ||
${{ github.workspace }}/build/reports/jacoco/testCoverage/testCoverage.xml | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
title: '## :construction: JaCoCo Code Coverage' | ||
update-comment: true | ||
debug-mode: true | ||
debug-mode: false | ||
|
||
- name: Get the Coverage info | ||
run: | | ||
|