Merge pull request #740 from JuditKnoll/mvn-target-task #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CI Task using https://github.com/jwgmeligmeyling/spotbugs-github-action | |
name: Java CI with SpotBugs | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- uses: actions/cache@v1 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Build with Maven | |
run: mvn clean install -DskipTests com.github.spotbugs:spotbugs-maven-plugin:4.8.6.1:spotbugs | |
- uses: jwgmeligmeyling/spotbugs-github-action@master | |
with: | |
path: '**/spotbugsXml.xml' |