Bump logbackVersion from 1.2.3 to 1.5.18 #160
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Maven caching | |
uses: actions/cache@v2 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Setup JDK 11 | |
uses: actions/[email protected] | |
with: | |
distribution: 'temurin' | |
java-version: 11 | |
java-package: jdk | |
architecture: x64 | |
cache: 'maven' | |
- name: Inspect environment (Linux) | |
if: runner.os == 'Linux' | |
run: env | grep '^JAVA' | |
- name: Build with Maven (Linux) | |
timeout-minutes: 60 | |
if: runner.os == 'Linux' | |
continue-on-error: true | |
run: ./mvnw -V -B --no-transfer-progress -e -DtrimStackTrace=false -Dmaven.test.failure.ignore=true -Dsurefire.rerunFailingTestsCount=1 verify | |
- name: Inspect environment (Windows) | |
if: runner.os == 'Windows' | |
run: set java | |
- name: Build with Maven (Windows) | |
timeout-minutes: 60 | |
if: runner.os == 'Windows' | |
continue-on-error: true | |
run: ./mvnw -V -B --no-transfer-progress -e "-DtrimStackTrace=false" "-Dmaven.test.failure.ignore=true" "-Dsurefire.rerunFailingTestsCount=1" "-Dlog4j2.junit.fileCleanerSleepPeriodMillis=1000" verify | |
- name: Inspect environment (MacOS) | |
if: runner.os == 'macOS' | |
run: env | grep '^JAVA' | |
- name: Build with Maven (MacOS) | |
timeout-minutes: 60 | |
if: runner.os == 'macOS' | |
continue-on-error: true | |
run: ./mvnw -V -B --no-transfer-progress -e -DtrimStackTrace=false -Dmaven.test.failure.ignore=true -Dsurefire.rerunFailingTestsCount=1 verify | |
- name: Publish Test Results | |
# If the CI run is not initiated from the primary repository, it is highly likely that this is a PR from a user who doesn't have commit rights. | |
# Hence, skip this step to avoid permission failures. | |
if: github.repository == 'apache/logging-log4j2' | |
uses: scacap/action-surefire-report@v1 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
check_name: Test Report (${{ matrix.os }}) | |
report_paths: '**/*-reports/TEST-*.xml' | |
- name: Upload Test Reports | |
# If the CI run is not initiated from the primary repository, it is highly likely that this is a PR from a user who doesn't have commit rights. | |
# Hence, skip this step to avoid permission failures. | |
if: github.repository == 'apache/logging-log4j2' | |
uses: actions/upload-artifact@v2 | |
with: | |
name: test-reports-${{ matrix.os }} | |
path: '**/*-reports' |