-
Notifications
You must be signed in to change notification settings - Fork 90
34 lines (33 loc) · 1.2 KB
/
spotbugs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: SpotBugs
on:
pull_request:
branches:
- master
paths:
- 'powertools-core/**'
- 'powertools-logging/**'
- 'powertools-sqs/**'
- 'powertools-tracing/**'
- 'powertools-validation/**'
- 'powertools-parameters/**'
- 'powertools-metrics/**'
- 'pom.xml'
- '.github/workflows/**'
jobs:
codecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup java JDK 1.8
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 8
- name: Build with Maven for spotbugs check to gather reports
run: mvn -Pbuild-with-spotbugs -B install --file pom.xml -DskipTests -Dmaven.javadoc.skip=true -Dspotbugs.failOnError=false
- uses: jwgmeligmeyling/spotbugs-github-action@master
with:
path: '**/spotbugsXml.xml'
# Can be simplified post this issue is fixed https://github.com/jwgmeligmeyling/spotbugs-github-action/issues/9
- name: Build with Maven for spotbugs check to mark build as fail if voilations found
run: mvn -Pbuild-with-spotbugs -B install --file pom.xml -DskipTests -Dmaven.javadoc.skip=true -Dspotbugs.failOnError=true