Update logback monorepo to v1.5.15 {patch} (#434) #676
This file contains 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
# This workflow will build a Java project with Gradle | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | |
name: JavaCI-PR | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
paths-ignore: | |
- 'README.md' | |
- '**/README.md' | |
- 'CODE_OF_CONDUCT.md' | |
- 'CONTRIBUTING.md' | |
- 'pull_request_template.md' | |
- '.lift/.toml' | |
- '**/.lift/.toml' | |
- 'SECURITY.md' | |
- 'LICENSE' | |
- '.github/ISSUE_TEMPLATE/**' | |
- '.github/assets/**' | |
- '.github/workflows/**' | |
- '!.github/workflows/gradle-ci.yml' | |
- '.github/pr-labeler.yml' | |
- 'renovate.json' | |
- '.whitesource' | |
- 'config/ossindex/exclusions.txt' | |
permissions: read-all | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, windows-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
# Set up build environment | |
- name: Prepare git | |
if: ${{ matrix.os != 'ubuntu-latest' }} | |
run: git config --global core.autocrlf false | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: Set up Gradle | |
uses: gradle/actions/setup-gradle@0bdd871935719febd78681f197cd39af5b6e16a6 # v4.2.2 | |
with: | |
cache-disabled: true | |
- name: Build with Gradle (if Ubuntu) | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: ./gradlew printVersion build -Pci | |
- name: Build with Gradle (if Windows) | |
if: ${{ matrix.os != 'ubuntu-latest' }} | |
run: ./gradlew printVersion build -x :file-barj-core:jacocoTestCoverageVerification -Pci | |
- name: Upload Test reports - Core | |
if: always() | |
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 | |
with: | |
name: test-report-file-barj-core-${{ matrix.os }} | |
path: | | |
file-barj-core/build/reports/tests/test | |
file-barj-core/build/reports/abort-mission/abort-mission-report.html | |
retention-days: 5 | |
- name: Upload Test reports - Job | |
if: always() | |
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 | |
with: | |
name: test-report-file-barj-job-${{ matrix.os }} | |
path: | | |
file-barj-job/build/reports/tests/test | |
file-barj-job/build/reports/abort-mission/abort-mission-report.html | |
retention-days: 5 | |
- name: Upload Test reports - Stream IO | |
if: always() | |
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0 | |
with: | |
name: test-report-file-barj-stream-io-${{ matrix.os }} | |
path: | | |
file-barj-stream-io/build/reports/tests/test | |
file-barj-stream-io/build/reports/abort-mission/abort-mission-report.html | |
retention-days: 5 | |
- name: Upload coverage to Codecov - Core (if Ubuntu) | |
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2 | |
if: ${{ matrix.os == 'ubuntu-latest' && github.repository_owner == 'nagyesta' }} | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./file-barj-core/build/reports/jacoco/report.xml | |
flags: core | |
- name: Upload coverage to Codecov - Job (if Ubuntu) | |
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2 | |
if: ${{ matrix.os == 'ubuntu-latest' && github.repository_owner == 'nagyesta' }} | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./file-barj-job/build/reports/jacoco/report.xml | |
flags: job | |
- name: Upload coverage to Codecov - Stream IO (if Ubuntu) | |
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2 | |
if: ${{ matrix.os == 'ubuntu-latest' && github.repository_owner == 'nagyesta' }} | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./file-barj-stream-io/build/reports/jacoco/report.xml | |
flags: stream |