Preparation to the release v1.2.0 (#291) #471
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
name: FindBugs Analysis | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: # added using https://github.com/step-security/secure-workflows | |
contents: read | |
pull-requests: write | |
jobs: | |
test-suite: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@d0651293c4a5a52e711f25b41b05b2212f385d28 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: maven | |
- name: Build with Maven | |
run: mvn -B package --file pom.xml | |
- name: Generate report | |
run: mvn spotbugs:spotbugs | |
- name: Upload FindBugs report as a workflow artifact | |
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce | |
with: | |
name: findbugs-report | |
path: target/spotbugsXml.xml | |
continue-on-error: true |