Update dependency org.sonarsource.scanner.maven:sonar-maven-plugin to v5 #179
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: Check Build | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ develop ] | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
branches: [ develop ] | |
paths-ignore: | |
- '**.md' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup - Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 21 | |
distribution: 'temurin' | |
- name: Setup - Restore Cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven-: | |
- name: Build - Maven Package | |
run: mvn -B clean package -DskipTests | |
- name: Test - Maven Verify | |
run: mvn -B clean verify | |
- name: Upload snupkg - Upload asset | |
uses: actions/upload-artifact@v4 | |
with: | |
name: javgent-standalone | |
path: ./target/javgent-standalone.jar | |
if-no-files-found: error |