Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions .github/workflows/maven-verify.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
name: Maven verify

on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]

jobs:
verify:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v6
with:
Expand All @@ -17,23 +19,23 @@ jobs:
with:
java-version: '17'
distribution: 'adopt'
- name: Cache SonarQube packages
uses: actions/cache@v5
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache maven packages
uses: actions/cache@v5
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Run the maven verify
run: mvn --batch-mode --update-snapshots clean verify
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=mivek_MetarParser

- name: Save the PR number in a file
run: echo ${{ github.event.number }} > PR_NUMBER.txt

- name: Upload the PR number as an artifact
uses: actions/upload-artifact@v5.0.0
with:
name: PR_NUMBER
path: PR_NUMBER.txt
generate-docs:
runs-on: ubuntu-latest
needs: verify
Expand Down
Loading