chore(deps): update dependency org.mockito:mockito-core to v5.13.0 #303
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: 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/[email protected] | |
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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
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/[email protected] | |
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 }} |