Skip to content

Bump com.puppycrawl.tools:checkstyle from 12.3.0 to 13.0.0 #1613

Bump com.puppycrawl.tools:checkstyle from 12.3.0 to 13.0.0

Bump com.puppycrawl.tools:checkstyle from 12.3.0 to 13.0.0 #1613

name: "Build"
on:
push:
branches-ignore:
- "*-jdk11"
- "*/*-jdk11"
tags-ignore:
- "*"
jobs:
build:
name: "Build"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: "Cache Maven repository"
uses: actions/[email protected]
with:
path: $HOME/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: "JDK set-up"
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'temurin'
- name: "Build"
run: |
mvn clean install -B -DskipTests -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -P compatibility-mode
test-and-quality-check:
name: "Test and quality check"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: "Cache Maven repository"
uses: actions/[email protected]
with:
path: $HOME/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: "Extract build information"
id: build_info
run: |
echo ::set-output name=SOURCE_BRANCH::${GITHUB_REF#refs/heads/}
- name: "JDK set-up"
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'temurin'
- name: "Test and Quality check"
uses: nick-invision/retry@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SOURCE_BRANCH: ${{ steps.build_info.outputs.SOURCE_BRANCH }}
with:
max_attempts: 10
timeout_minutes: 15
retry_on: error
command: |
mvn verify jacoco:report-aggregate -P compatibility-mode
- name: "Submit coverage to Coveralls"
if: ${{ env.COVERALLS_IO_TOKEN != '' }}
env:
COVERALLS_IO_TOKEN: ${{ secrets.COVERALLS_IO_TOKEN }}
run: |
mvn coveralls:report -DrepoToken=$COVERALLS_IO_TOKEN
security-check:
name: "Security check"
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: "Cache Maven repository"
uses: actions/[email protected]
with:
path: $HOME/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: "JDK set-up"
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'temurin'
- name: "Checkout repository"
uses: actions/checkout@v6
# Initializes the CodeQL tools for scanning.
- name: "Initialize CodeQL"
uses: github/codeql-action/init@v4
with:
languages: 'java'
- run: |
mvn clean install -B -DskipTests -P fast
- name: "Perform Analysis"
uses: github/codeql-action/analyze@v4