|
57 | 57 | types: [published] |
58 | 58 |
|
59 | 59 | jobs: |
| 60 | + Checkstyle: |
| 61 | + name: Run Checkstyle |
| 62 | + runs-on: ubuntu-latest |
| 63 | + continue-on-error: true |
| 64 | + permissions: |
| 65 | + contents: read |
| 66 | + steps: |
| 67 | + - uses: actions/checkout@v6.0.2 |
| 68 | + - name: Setup the java environment |
| 69 | + uses: actions/setup-java@v5.2.0 |
| 70 | + with: |
| 71 | + distribution: 'temurin' |
| 72 | + java-version: '21' |
| 73 | + - name: Validate the Gradle wrapper |
| 74 | + uses: gradle/actions/wrapper-validation@v5.0.2 |
| 75 | + - name: Run Checkstyle |
| 76 | + run: | |
| 77 | + ./gradlew checkstyleMain checkstyleTest --console=plain --stacktrace |
| 78 | + - name: Upload Checkstyle Reports |
| 79 | + uses: actions/upload-artifact@v7.0.0 |
| 80 | + if: always() |
| 81 | + with: |
| 82 | + name: checkstyle-report |
| 83 | + retention-days: 30 |
| 84 | + path: | |
| 85 | + **/build/reports/checkstyle/** |
| 86 | +
|
| 87 | + SpotBugs: |
| 88 | + name: Run SpotBugs |
| 89 | + runs-on: ubuntu-latest |
| 90 | + continue-on-error: true |
| 91 | + permissions: |
| 92 | + contents: read |
| 93 | + steps: |
| 94 | + - uses: actions/checkout@v6.0.2 |
| 95 | + - name: Setup the java environment |
| 96 | + uses: actions/setup-java@v5.2.0 |
| 97 | + with: |
| 98 | + distribution: 'temurin' |
| 99 | + java-version: '21' |
| 100 | + - name: Validate the Gradle wrapper |
| 101 | + uses: gradle/actions/wrapper-validation@v5.0.2 |
| 102 | + - name: Run SpotBugs |
| 103 | + run: | |
| 104 | + ./gradlew -PenableSpotBugs=true spotbugsMain spotbugsTest --console=plain --stacktrace |
| 105 | + - name: Upload SpotBugs Reports |
| 106 | + uses: actions/upload-artifact@v7.0.0 |
| 107 | + if: always() |
| 108 | + with: |
| 109 | + name: spotbugs-report |
| 110 | + retention-days: 30 |
| 111 | + path: | |
| 112 | + **/build/reports/spotbugs/** |
| 113 | +
|
60 | 114 | ScreenshotTests: |
61 | 115 | name: Run Screenshot Tests |
62 | 116 | runs-on: ubuntu-latest |
@@ -234,6 +288,7 @@ jobs: |
234 | 288 | run: | |
235 | 289 | # Normal build plus ZIP distribution and merged javadoc |
236 | 290 | ./gradlew -PuseCommitHashAsVersionName=true -PskipPrebuildLibraries=true \ |
| 291 | + -x checkstyleMain -x checkstyleTest \ |
237 | 292 | build createZipDistribution mergedJavadoc |
238 | 293 |
|
239 | 294 | if [ "${{ matrix.deploy }}" = "true" ]; |
|
0 commit comments