Skip to content

ci: allow scorecard result publishing #28

ci: allow scorecard result publishing

ci: allow scorecard result publishing #28

Workflow file for this run

name: Quality Gates
on:
push:
branches: [ "main", "master" ]
pull_request:
branches: [ "main", "master" ]
jobs:
static-analysis:
name: Static analysis (no tests)
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
cache: maven
- name: Run static quality plugins
run: mvn -B -DskipTests checkstyle:check pmd:check spotbugs:check
- name: Upload checkstyle report
uses: actions/upload-artifact@v4
with:
name: checkstyle-report
path: target/checkstyle-result.xml
if-no-files-found: ignore
- name: Upload pmd report
uses: actions/upload-artifact@v4
with:
name: pmd-report
path: target/pmd.xml
if-no-files-found: ignore
- name: Upload spotbugs report
uses: actions/upload-artifact@v4
with:
name: spotbugs-report
path: target/spotbugsXml.xml
if-no-files-found: ignore