build(deps): bump org.sonarsource.java:java-frontend from 7.30.0.34429 to 8.0.0.36314 #256
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 and test | |
on: | |
push: | |
paths-ignore: | |
- '.github/**' | |
- '**/*.md' | |
tags-ignore: | |
- '**' | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set Release version env variable | |
run: | | |
echo "TAG_NAME=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV | |
# if no tag exists, this is expected to fail | |
- name: Switch to git tag for release | |
if: contains(env.TAG_NAME, 'SNAPSHOT') != true | |
run: | | |
git fetch --all --tags -f | |
git checkout tags/${{ env.TAG_NAME }} -b ${{ env.TAG_NAME }}-tmp-branch | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 11 | |
- name: Build | |
run: | | |
./mvnw clean verify | |
- name: Upload jar | |
uses: actions/upload-artifact@v4 | |
with: | |
name: sonar-pmd-plugin-${{ env.TAG_NAME }} | |
path: sonar-pmd-plugin/target/sonar-pmd-plugin-*.jar |