Skip to content

Commit e4cf356

Browse files
committed
Use PR head as checkout baseline.
1 parent e3d2ace commit e4cf356

File tree

1 file changed

+2
-62
lines changed

1 file changed

+2
-62
lines changed

.github/workflows/quality-monitor.yml

+2-62
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v4
14+
with:
15+
ref: "refs/pull/${{ github.event.number }}/merge"
1416
- name: Set up JDK 21
1517
uses: actions/setup-java@v4
1618
with:
@@ -34,65 +36,3 @@ jobs:
3436
with:
3537
github-token: ${{ secrets.GITHUB_TOKEN }}
3638
pr-number: ${{ steps.pr.outputs.number }}
37-
config: >
38-
{
39-
"tests": {
40-
"name": "Tests",
41-
"tools": [
42-
{
43-
"id": "test",
44-
"name": "Tests",
45-
"pattern": "**/target/*-reports/TEST*.xml"
46-
}
47-
]
48-
},
49-
"analysis": [
50-
{
51-
"name": "Style",
52-
"id": "style",
53-
"tools": [
54-
{
55-
"id": "checkstyle",
56-
"pattern": "**/target/checkstyle-*/checkstyle-result.xml"
57-
},
58-
{
59-
"id": "pmd",
60-
"pattern": "**/target/pmd-*/pmd.xml"
61-
}
62-
]
63-
},
64-
{
65-
"name": "Bugs",
66-
"id": "bugs",
67-
"icon": "bug",
68-
"tools": [
69-
{
70-
"id": "spotbugs",
71-
"sourcePath": "src/main/java",
72-
"pattern": "**/target/spotbugsXml.xml"
73-
}
74-
]
75-
}
76-
],
77-
"coverage": [
78-
{
79-
"name": "Code Coverage",
80-
"tools": [
81-
{
82-
"id": "jacoco",
83-
"name": "Line Coverage",
84-
"metric": "line",
85-
"sourcePath": "src/main/java",
86-
"pattern": "**/target/site/jacoco/jacoco.xml"
87-
},
88-
{
89-
"id": "jacoco",
90-
"name": "Branch Coverage",
91-
"metric": "branch",
92-
"sourcePath": "src/main/java",
93-
"pattern": "**/target/site/jacoco/jacoco.xml"
94-
}
95-
]
96-
}
97-
]
98-
}

0 commit comments

Comments
 (0)