Skip to content

chore(deps): bump com.puppycrawl.tools:checkstyle from 8.43 to 10.14.0 #475

chore(deps): bump com.puppycrawl.tools:checkstyle from 8.43 to 10.14.0

chore(deps): bump com.puppycrawl.tools:checkstyle from 8.43 to 10.14.0 #475

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: ci
on:
push:
branches-ignore:
- 'dependabot/**'
paths-ignore:
- '**.gitattributes'
- '**.gitignore'
- '**.md'
pull_request:
paths-ignore:
- '**.gitattributes'
- '**.gitignore'
- '**.md'
jobs:
artifact:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: 8
distribution: 'adopt'
cache: maven
- name: Set artifact version
run: script/version_snapshot.sh
shell: bash
- name: Stage artifacts
run: mvn -B -DaltDeploymentRepository=ossrh::default::file:snapshot/ deploy
- name: Package artifacts
uses: actions/upload-artifact@v3
if: success()
with:
name: jsonurl-maven-repository
path: snapshot/*
- name: Publish gh-pages
if: ${{ success() && github.event.repository.fork == false && github.ref == 'refs/heads/main' }}
run: >
script/deploy_ghpages.sh
'doc: Update by action ${{ github.workflow }}.${{ github.job }}/${{ github.run_id }} on behalf of ${{ github.actor }} for ${{ github.event_name }} ${{ github.sha }}'
'scm:git:https://github.com/${{ github.repository }}.git'
shell: bash
env:
GH_ACTION_KEY: ${{ secrets.GH_ACTION_KEY }}
matrix-build:
needs: artifact
if: ${{ needs.artifact.result == 'success' }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
jdk: [8, 11, 17]
distribution: [ 'zulu', 'adopt' ]
name: Java ${{ matrix.jdk }} (${{ matrix.distribution }}) on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.jdk }}
distribution: ${{ matrix.distribution }}
cache: maven
- name: Set artifact version
run: script/version_snapshot.sh
shell: bash
- name: Build with Maven
run: mvn -P jacoco -B clean package verify --file pom.xml
snyk:
needs: artifact
if: ${{ needs.artifact.result == 'success' && github.event.repository.fork == false && ( github.event_name == 'push' || github.event.pull_request.author_association == 'OWNER' || github.event.pull_request.author_association == 'MEMBER' || github.event.pull_request.author_association == 'COLLABORATOR' ) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Snyk to check ${{ github.ref }} for vulnerabilities
uses: snyk/actions/maven-3-jdk-17@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
sonarcloud:
needs: artifact
if: ${{ needs.artifact.result == 'success' && github.event.repository.fork == false && ( github.event_name == 'push' || github.event.pull_request.author_association == 'OWNER' || github.event.pull_request.author_association == 'MEMBER' || github.event.pull_request.author_association == 'COLLABORATOR' ) }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'adopt'
cache: maven
- name: Set artifact version
run: script/version_snapshot.sh
shell: bash
- name: SonarCloud scan of ${{ github.ref }}
run: >
mvn -P jacoco -B
-Dsonar.projectKey=jsonurl-java
-Dsonar.organization=jsonurl
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.java.libraries=/home/runner/.m2/**/*.jar
-Dsonar.java.test.libraries=/home/runner/.m2/**/*.jar
package sonar:sonar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}