forked from usdot-jpo-ode/jpo-asn-pojos
-
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.
adding code coverage github action, removing folders in bin/ folder
- Loading branch information
1 parent
a747312
commit 1447a2e
Showing
5 changed files
with
56 additions
and
107 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Test & Coverage | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: Run Tests with Coverage | ||
working-directory: ./j2735-2024 | ||
run: ./gradlew test jacocoTestReport | ||
|
||
- name: Upload coverage reports | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: coverage-report | ||
path: j2735-2024/build/reports/jacoco/test/html/ | ||
|
||
- name: Add Coverage PR Comment | ||
uses: madrapps/jacoco-report@v1.6.1 | ||
if: github.event_name == 'pull_request' | ||
with: | ||
paths: ${{ github.workspace }}/j2735-2024/build/reports/jacoco/test/jacocoTestReport.xml | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
min-coverage-overall: 80 | ||
min-coverage-changed-files: 80 |
Binary file removed
BIN
-11.5 KB
j2735-2024/bin/test/j2735/PersonalSafetyMessage/PersonalSafetyMessageTest.class
Binary file not shown.
98 changes: 0 additions & 98 deletions
98
j2735-2024/bin/test/j2735/PersonalSafetyMessage/json/GeneratedPsm.json
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -51,4 +51,8 @@ test { | |
|
||
jacocoTestReport { | ||
dependsOn test | ||
reports { | ||
xml.required = true | ||
html.required = true | ||
} | ||
} |
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