Merge pull request #356 from catenax-ng/main #849
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: "Spotbugs bug detection" | |
on: | |
push: | |
branches: main | |
paths-ignore: | |
- '**/*.md' | |
- '**/*.txt' | |
pull_request: | |
branches: main | |
paths-ignore: | |
- '**/*.md' | |
- '**/*.txt' | |
- 'charts/**' | |
- '.config/**' | |
- 'docs/**' | |
- 'local/**' | |
- 'README.md' | |
- 'CHANGELOG.md' | |
schedule: | |
- cron: '0 0 * * *' # Once a day | |
jobs: | |
analyze: | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
name: spotbugs-check | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Cache maven packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: run maven spotbugs plugin | |
run: mvn clean package -DskipTests=true spotbugs:check |