Skip to content

[2.x] Backport maven enforcer rules to 2.x #500

[2.x] Backport maven enforcer rules to 2.x

[2.x] Backport maven enforcer rules to 2.x #500

Workflow file for this run

name: "Validate PR"
on: [pull_request, push, workflow_dispatch]
env:
JAVA_VERSION: '11'
JAVA_DISTRO: 'temurin'
GRAALVM_VERSION: '20.2.0'
GRAALVM_COMPONENTS: 'native-image'
HELIDON_PIPELINES: 'true'
MAVEN_HTTP_ARGS: '-Dmaven.wagon.httpconnectionManager.ttlSeconds=60 -Dmaven.wagon.http.retryHandler.count=3'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
copyright:
timeout-minutes: 10
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK 11
uses: actions/[email protected]
with:
distribution: ${{ env.JAVA_DISTRO }}
java-version: ${{ env.JAVA_VERSION }}
cache: maven
- name: Copyright
run: etc/scripts/copyright.sh
checkstyle:
timeout-minutes: 10
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/[email protected]
with:
distribution: ${{ env.JAVA_DISTRO }}
java-version: ${{ env.JAVA_VERSION }}
cache: maven
- name: Checkstyle
run: etc/scripts/checkstyle.sh
spotbugs:
timeout-minutes: 30
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/[email protected]
with:
distribution: ${{ env.JAVA_DISTRO }}
java-version: ${{ env.JAVA_VERSION }}
cache: maven
- name: Spotbugs
run: etc/scripts/spotbugs.sh
build:
timeout-minutes: 60
strategy:
matrix:
os: [ ubuntu-20.04,windows-2019 ]
include:
- os: ubuntu-20.04
build_script: etc/scripts/build.sh
- os: windows-2019
build_script: etc/scripts/build.bat
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Java 11
if: matrix.os == 'ubuntu-20.04'
uses: actions/[email protected]
with:
distribution: ${{ env.JAVA_DISTRO }}
java-version: ${{ env.JAVA_VERSION }}
cache: maven
- name: Set up Java 11
if: matrix.os == 'windows-2019'
uses: graalvm/setup-graalvm@v1
with:
version: ${{ env.GRAALVM_VERSION }}
java-version: ${{ env.JAVA_VERSION }}
components: ${{ env.GRAALVM_COMPONENTS }}
github-token: ${{ secrets.GITHUB_TOKEN }}
cache: maven
- name: Maven build
run: ${{ matrix.build_script }}
- name: Archive test results
uses: actions/[email protected]
with:
name: test-results
path: |
**/target/surefire-reports/*.txt
**/target/it/**/*.log