chore(deps): update dependency com.fasterxml.jackson.core:jackson-dat… #314
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- alpha | |
- beta | |
- master | |
- renovate/** | |
tags: | |
- '[0-9]+.[0-9]+.[0-9]+' | |
jobs: | |
prepare_jobs: | |
name: "Prepare: job optimization" | |
runs-on: ubuntu-latest | |
outputs: | |
pr_found: ${{ steps.pr.outputs.pr_found }} | |
steps: | |
- name: Get current PR | |
id: pr | |
uses: 8BitJonny/gh-get-current-pr@3.0.0 | |
with: | |
filterOutClosed: true | |
sha: ${{ github.event.pull_request.head.sha }} | |
build: | |
name: Build | |
needs: prepare_jobs | |
if: needs.prepare_jobs.outputs.pr_found == 'false' || github.event_name == 'pull_request' | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java: ["11", "21"] | |
steps: | |
- name: Checkout git repository | |
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
with: | |
fetch-depth: 0 # fetch complete history to find the last git tag | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: "adopt" | |
cache: maven | |
- name: Build with Maven | |
run: mvn -B package --file pom.xml | |
- name: Upload code coverage | |
uses: codecov/codecov-action@v4.0.0-beta.2 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Release | |
if: startsWith(github.ref, 'refs/tags/') && matrix.java == 11 | |
env: | |
GPG_KEY_NAME: B70E1EAC | |
GPG_PASSPHRASE_KEY: ${{ secrets.GPG_PASSPHRASE_KEY }} | |
GPG_PASSPHRASE_FILE: ${{ secrets.GPG_PASSPHRASE_FILE }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
run: | | |
./ci/before-deploy.sh | |
cp ./ci/.m2.settings.xml $HOME/.m2/settings.xml | |
mvn deploy -P release -DskipTests=true | |
- name: Create release | |
if: startsWith(github.ref, 'refs/tags/') && matrix.java == 11 | |
run: npx changelogithub | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |