Skip to content

Update version to 2.3.8-SNAPSHOT #515

Update version to 2.3.8-SNAPSHOT

Update version to 2.3.8-SNAPSHOT #515

Workflow file for this run

#
# Copyright (c) 2023 Oracle and/or its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: "Validate"
on:
pull_request:
push:
workflow_call:
inputs:
ref:
description: The branch, tag or SHA to checkout
required: false
type: string
default: ''
env:
JAVA_VERSION: '11'
JAVA_DISTRO: 'temurin'
GRAALVM_VERSION: '20.2.0'
GRAALVM_COMPONENTS: 'native-image'
MAVEN_ARGS: |
-B -fae -e
-Dmaven.wagon.httpconnectionManager.ttlSeconds=60
-Dmaven.wagon.http.retryHandler.count=3
-Djdk.toolchain.version=${JAVA_VERSION}
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:
ref: ${{ inputs.ref }}
fetch-depth: 0
- uses: actions/[email protected]
with:
distribution: ${{ env.JAVA_DISTRO }}
java-version: ${{ env.JAVA_VERSION }}
cache: maven
- run: etc/scripts/copyright.sh
checkstyle:
timeout-minutes: 10
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.ref }}
- uses: actions/[email protected]
with:
distribution: ${{ env.JAVA_DISTRO }}
java-version: ${{ env.JAVA_VERSION }}
cache: maven
- run: etc/scripts/checkstyle.sh
spotbugs:
timeout-minutes: 30
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.ref }}
- uses: actions/[email protected]
with:
distribution: ${{ env.JAVA_DISTRO }}
java-version: ${{ env.JAVA_VERSION }}
cache: maven
- run: |
mvn ${MAVEN_ARGS} -T 8 \
verify \
-DskipTests \
--fail-at-end \
-Pspotbugs
build:
timeout-minutes: 60
strategy:
matrix:
os: [ ubuntu-20.04,windows-2019 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.ref }}
- uses: actions/[email protected]
if: matrix.os == 'ubuntu-20.04'
with:
distribution: ${{ env.JAVA_DISTRO }}
java-version: ${{ env.JAVA_VERSION }}
cache: maven
- uses: graalvm/setup-graalvm@v1
if: matrix.os == 'windows-2019'
with:
version: ${{ env.GRAALVM_VERSION }}
java-version: ${{ env.JAVA_VERSION }}
components: ${{ env.GRAALVM_COMPONENTS }}
github-token: ${{ secrets.GITHUB_TOKEN }}
cache: maven
- run: |
mvn ${MAVEN_ARGS} -T 8 \
clean install \
--fail-at-end \
-Dmaven.test.failure.ignore=true
shell: bash
- name: Archive test results
uses: actions/[email protected]
with:
name: test-results
path: |
**/target/surefire-reports/*.txt
**/target/it/**/*.log