Skip to content

Commit 0c8e770

Browse files
authored
Create spotbugs.yml
1 parent a54690b commit 0c8e770

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/spotbugs.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
with:
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+
with:
26+
path: '**/spotbugsXml.xml'

0 commit comments

Comments
 (0)