Skip to content

build: migrate logger to SLF4J APIs + Logback backend #727

build: migrate logger to SLF4J APIs + Logback backend

build: migrate logger to SLF4J APIs + Logback backend #727

Workflow file for this run

#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for additional
# information regarding copyright ownership. The ASF licenses this file to you
# 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: PR Validation
on:
pull_request:
env:
MAVEN_OPTS: >-
-Dmaven.artifact.threads=4
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
-Dmaven.wagon.httpconnectionManager.ttlSeconds=25
-Dmaven.wagon.http.retryHandler.count=3
MAVEN_CLI_OPTS: >-
--batch-mode
-Pproduction
-Dmaven.test.redirectTestOutputToFile=true
-Dsurefire.rerunFailingTestsCount=3
--update-snapshots
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 'Set up JDK 21'
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: 'maven'
- name: 'Build and test with Maven'
run: ./mvnw -B package --file pom.xml
- name: 'Submit Dependency Snapshot'
uses: advanced-security/maven-dependency-submission-action@v4
- uses: actions/upload-artifact@v4
if: always()
with:
name: test-results # as expected by pr-validation-report workflow
path: carapace-*/target/surefire-reports/*.xml
retention-days: 1