Skip to content

Bump pmd.version from 7.8.0 to 7.9.0 (#288) #813

Bump pmd.version from 7.8.0 to 7.9.0 (#288)

Bump pmd.version from 7.8.0 to 7.9.0 (#288) #813

Workflow file for this run

name: Java CI
on:
push:
branches:
- master
pull_request:
jobs:
build:
strategy:
fail-fast: false
matrix:
type: [ "sonar", "without-sonar" ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
cache: 'maven'
- name: Cache SonarCloud packages
uses: actions/cache@v4
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build and analyze
if: matrix.type == 'sonar'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./mvnw clean verify -P sonar
- name: Build with Maven
if: matrix.type != 'sonar'
run: ./mvnw clean verify
- name: Build Docker image
if: matrix.type == 'sonar'
run: ./mvnw spring-boot:build-image -DskipTests