Skip to content

Next version

Next version #46

Workflow file for this run

name: Code Scan with Spotbugs and PMD
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
java_version: ['8']
os: ['ubuntu-22.04']
steps:
- name: Checkout on ${{ matrix.os }}
uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java_version }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java_version }}
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B -q -ff compile spotbugs:spotbugs pmd:pmd
- name: Upload Spotbugs SARIF file
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: target/spotbugsSarif.json
category: Spotbugs
- name: Upload PMD SARIF file
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: target/pmd.sarif.json
category: PMD