Skip to content

Commit cb5df57

Browse files
committed
Update Checkstyle report action and publish CodeNarc reports
1 parent 1496431 commit cb5df57

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/test-push.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@ jobs:
2929
- uses: actions/checkout@v6
3030
- uses: gradle/actions/wrapper-validation@v6
3131
- run: ./gradlew build check -x test --stacktrace --warning-mode fail
32-
- uses: Juuxel/publish-checkstyle-report@v1
32+
- uses: Juuxel/publish-checkstyle-report@v3
3333
if: ${{ failure() }}
3434
with:
3535
reports: |
3636
build/reports/checkstyle/*.xml
37+
build/reports/codenarc/*.xml
3738
3839
build_windows:
3940
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.extended_tests == 'true' }}

build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,10 @@ checkstyle {
256256
codenarc {
257257
toolVersion = libs.versions.codenarc.get()
258258
configFile = file("codenarc.groovy")
259+
260+
if (ENV.CI) {
261+
reportFormat = 'xml'
262+
}
259263
}
260264

261265
gradlePlugin {

0 commit comments

Comments
 (0)