Skip to content

Commit 691e9d0

Browse files
authored
Update jacoco.yml
1 parent 3ec415b commit 691e9d0

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

.github/workflows/jacoco.yml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,33 @@ jobs:
2121
run: |
2222
cd core
2323
mvn -V --color always -ntp clean verify -Pci
24-
- name: Extract pull request number # (commenting on the pull request requires the PR number)
25-
uses: jwalton/gh-find-current-pr@v1
26-
id: pr
24+
jobs:
25+
build:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v2
29+
- name: Set up JDK 11
30+
uses: actions/setup-java@v3
2731
with:
28-
state: all
32+
java-version: 11
33+
distribution: 'temurin'
34+
cache: maven
35+
- name: Generate coverage with JaCoCo
36+
run: |
37+
cd core
38+
mvn -V --color always -ntp clean verify -Pci
39+
- name: Get Pull Request Number
40+
id: pr
41+
run: echo "::set-output name=pull_request_number::$(gh pr view --json number -q .number || echo "")"
42+
env:
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
- name: Run Quality Monitor
45+
uses: uhafner/quality-monitor@v1
46+
with:
47+
github-token: ${{ secrets.GITHUB_TOKEN }}
48+
pr-number: ${{ steps.pr.outputs.pull_request_number }}
2949
- name: Run Quality Monitor
3050
uses: uhafner/quality-monitor@v1
3151
with:
3252
github-token: ${{ secrets.GITHUB_TOKEN }}
33-
pr-number: ${{ steps.pr.outputs.number }}
53+
pr-number: ${{ steps.pr.outputs.pull_request_number }}

0 commit comments

Comments
 (0)