Skip to content

Merge pull request #356 from catenax-ng/main #849

Merge pull request #356 from catenax-ng/main

Merge pull request #356 from catenax-ng/main #849

Workflow file for this run

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