File tree 2 files changed +36
-1
lines changed
2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : SpotBugs Code Check
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
+ spotbugs :
19
+ runs-on : ubuntu-latest
20
+ env :
21
+ AWS_REGION : eu-west-1
22
+ steps :
23
+ - uses : actions/checkout@v2
24
+ - name : Setup java JDK 1.8
25
+ uses : actions/setup-java@v2
26
+ with :
27
+ distribution : ' zulu'
28
+ java-version : 8
29
+ - name : Build with Maven for spotbugs check to gather reports
30
+ run : mvn -Pbuild-with-spotbugs -B install --file pom.xml -DskipTests -Dmaven.javadoc.skip=true -Dspotbugs.failOnError=false
31
+ - uses : jwgmeligmeyling/spotbugs-github-action@master
32
+ with :
33
+ path : ' **/spotbugsXml.xml'
34
+ # Can be simplified post this issue is fixed https://github.com/jwgmeligmeyling/spotbugs-github-action/issues/9
35
+ - name : Build with Maven for spotbugs check to mark build as fail if voilations found
36
+ 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