Bump org.junit:junit-bom from 5.10.3 to 5.11.2 #1510
Workflow file for this run
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
name: build | |
on: | |
- push | |
- pull_request | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [ '11', '17', '21' ] | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Setup JAVA | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: ${{ matrix.java }} | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.m2/repository | |
~/.m2/wrapper | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml', '.mvn/wrapper/maven-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Build | |
run: ./mvnw --batch-mode --no-transfer-progress --show-version --settings .github/maven/settings.xml verify | |
# Run tests against Jackson 2.12 to ensure runtime compatibility (do not recompile) | |
- name: Test Jackson 2.12.x | |
run: ./mvnw --batch-mode --no-transfer-progress --show-version --settings .github/maven/settings.xml -Pcompat-jackson surefire:test | |
- name: Upload Test Reports to Github | |
uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: test-reports-${{ matrix.java }} | |
path: '**/target/surefire-reports/**' | |
if-no-files-found: ignore | |
- name: Upload Test Coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
if: matrix.java == '21' | |
with: | |
files: target/site/jacoco/jacoco.xml | |
release: | |
name: release | |
runs-on: ubuntu-22.04 | |
needs: [build] | |
if: github.event_name == 'push' && github.repository == 'logfellow/logstash-logback-encoder' && github.ref == 'refs/heads/main' && startsWith(github.event.commits[0].message, '[release]') | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
with: | |
ref: main | |
- name: Setup JAVA | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: 21 | |
- name: Setup GPG | |
run: .github/workflows/steps/setup-gpg.sh | |
env: | |
GPG_KEY: ${{ secrets.GPG_KEY }} | |
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
- name: Setup GIT | |
run: | | |
.github/workflows/steps/setup-git.sh | |
git switch main | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.m2/repository | |
~/.m2/wrapper | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml', '.mvn/wrapper/maven-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Release | |
run: ./mvnw --batch-mode --no-transfer-progress --show-version --settings .github/maven/settings.xml --activate-profiles ossrh release:prepare release:perform | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | |
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} |