diff --git a/.github/workflows/quality-monitor.yml b/.github/workflows/quality-monitor.yml index 8d622bff..f5408b78 100644 --- a/.github/workflows/quality-monitor.yml +++ b/.github/workflows/quality-monitor.yml @@ -11,6 +11,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + ref: "refs/pull/${{ github.event.number }}/merge" - name: Set up JDK 21 uses: actions/setup-java@v4 with: @@ -34,65 +36,3 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} pr-number: ${{ steps.pr.outputs.number }} - config: > - { - "tests": { - "name": "Tests", - "tools": [ - { - "id": "test", - "name": "Tests", - "pattern": "**/target/*-reports/TEST*.xml" - } - ] - }, - "analysis": [ - { - "name": "Style", - "id": "style", - "tools": [ - { - "id": "checkstyle", - "pattern": "**/target/checkstyle-*/checkstyle-result.xml" - }, - { - "id": "pmd", - "pattern": "**/target/pmd-*/pmd.xml" - } - ] - }, - { - "name": "Bugs", - "id": "bugs", - "icon": "bug", - "tools": [ - { - "id": "spotbugs", - "sourcePath": "src/main/java", - "pattern": "**/target/spotbugsXml.xml" - } - ] - } - ], - "coverage": [ - { - "name": "Code Coverage", - "tools": [ - { - "id": "jacoco", - "name": "Line Coverage", - "metric": "line", - "sourcePath": "src/main/java", - "pattern": "**/target/site/jacoco/jacoco.xml" - }, - { - "id": "jacoco", - "name": "Branch Coverage", - "metric": "branch", - "sourcePath": "src/main/java", - "pattern": "**/target/site/jacoco/jacoco.xml" - } - ] - } - ] - }