File tree 2 files changed +34
-1
lines changed
2 files changed +34
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : SpotBugs
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - master
7
+ paths :
8
+ - ' powertools-core/**'
9
+ - ' powertools-logging/**'
10
+ - ' powertools-sqs/**'
11
+ - ' powertools-tracing/**'
12
+ - ' powertools-validation/**'
13
+ - ' powertools-parameters/**'
14
+ - ' powertools-metrics/**'
15
+ - ' pom.xml'
16
+ - ' .github/workflows/**'
17
+ jobs :
18
+ codecheck :
19
+ runs-on : ubuntu-latest
20
+ steps :
21
+ - uses : actions/checkout@v2
22
+ - name : Setup java JDK 1.8
23
+ uses : actions/setup-java@v2
24
+ with :
25
+ distribution : ' zulu'
26
+ java-version : 8
27
+ - name : Build with Maven for spotbugs check to gather reports
28
+ run : mvn -Pbuild-with-spotbugs -B install --file pom.xml -DskipTests -Dmaven.javadoc.skip=true -Dspotbugs.failOnError=false
29
+ - uses : jwgmeligmeyling/spotbugs-github-action@master
30
+ with :
31
+ path : ' **/spotbugsXml.xml'
32
+ # Can be simplified post this issue is fixed https://github.com/jwgmeligmeyling/spotbugs-github-action/issues/9
33
+ - name : Build with Maven for spotbugs check to mark build as fail if voilations found
34
+ run : mvn -Pbuild-with-spotbugs -B install --file pom.xml -DskipTests -Dmaven.javadoc.skip=true -Dspotbugs.failOnError=true
Original file line number Diff line number Diff line change 419
419
</executions >
420
420
<configuration >
421
421
<xmlOutput >true</xmlOutput >
422
- <failOnError >true</failOnError >
423
422
</configuration >
424
423
</plugin >
425
424
<plugin >
You can’t perform that action at this time.
0 commit comments