1 parent a54690b commit 0c8e770Copy full SHA for 0c8e770
1 file changed
.github/workflows/spotbugs.yml
@@ -0,0 +1,26 @@
1
+# CI Task using https://github.com/jwgmeligmeyling/spotbugs-github-action
2
+
3
+name: Java CI with SpotBugs
4
5
+on: [push]
6
7
+jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v2
12
+ - name: Set up JDK 1.8
13
+ uses: actions/setup-java@v1
14
+ with:
15
+ java-version: 1.8
16
+ - uses: actions/cache@v1
17
18
+ path: ~/.m2/repository
19
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
20
+ restore-keys: |
21
+ ${{ runner.os }}-maven-
22
+ - name: Build with Maven
23
+ run: mvn clean install -DskipTests com.github.spotbugs:spotbugs-maven-plugin:3.1.12:spotbugs
24
+ - uses: jwgmeligmeyling/spotbugs-github-action@master
25
26
+ path: '**/spotbugsXml.xml'
0 commit comments