Skip to content

Bump org.apache.maven.plugins:maven-surefire-plugin from 3.5.6 to 3.6… #489

Bump org.apache.maven.plugins:maven-surefire-plugin from 3.5.6 to 3.6…

Bump org.apache.maven.plugins:maven-surefire-plugin from 3.5.6 to 3.6… #489

Workflow file for this run

name: Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
checks: write
packages: write
pull-requests: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v6
with:
java-version: '17'
distribution: 'temurin'
server-id: github
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
cache: maven
- name: Cache SonarQube packages
uses: actions/cache@v6
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Build with Maven
env:
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
run: mvn -B clean verify --file pom.xml
- name: Code coverage
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: target/site/jacoco/jacoco.xml
- name: SonarQube
if: github.ref_name == github.event.repository.default_branch
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
- name: Set release variable (pull request)
if: github.event_name == 'pull_request'
run: |
echo "SOURCE=PR${{ github.event.pull_request.number }}" >> $GITHUB_ENV
- name: Set release variable (branch)
if: github.event_name != 'pull_request'
run: |
echo "SOURCE=${{ github.ref_name }}" >> $GITHUB_ENV
- name: Release
id: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
MAJOR: ${{ github.ref_name == github.event.repository.default_branch && '1' || '0' }}
run: |
./release.sh >> $GITHUB_OUTPUT
- name: Comment (pull request)
if: github.event_name == 'pull_request'
uses: actions/github-script@v9
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Version `${{ steps.release.outputs.revision }}` is deployed!'
})
- name: Release summary
run: |
echo "Version \`${{ steps.release.outputs.revision }}\` is deployed!" >> $GITHUB_STEP_SUMMARY