Skip to content

Commit cf438ec

Browse files
committed
run for PR
1 parent 1b25989 commit cf438ec

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ on:
1919
branches:
2020
- main
2121
paths:
22+
- '.github/**'
2223
- 'sdk/**'
2324
- 'sdk-testing/**'
2425
- 'sdk-integration-tests/**'
@@ -61,14 +62,17 @@ jobs:
6162
run: mvn -B install --file pom.xml
6263

6364
- name: Generate JaCoCo Badge
64-
if: ${{ github.ref == 'refs/heads/master' && matrix.java == 17 }}
65+
if: ${{ matrix.java == 17 }}
66+
# if: ${{ github.ref == 'refs/heads/main' && matrix.java == 17 }}
6567
uses: cicirello/jacoco-badge-generator@v2
6668
with:
67-
jacoco-csv-file: build/reports/jacoco/test/jacocoTestReport.csv
68-
badges-directory: build/reports/jacoco/test/html/badges
69+
jacoco-csv-file: sdk/target/site/jacoco/jacoco.csv
70+
badges-directory: sdk/target/site/jacoco
6971

7072
- name: Publish coverage report to GitHub Pages
71-
if: ${{ github.ref == 'refs/heads/master' && matrix.java == 17 }}
73+
if: ${{ matrix.java == 17 }}
74+
# if: ${{ github.ref == 'refs/heads/coverage' && matrix.java == 17 }}
7275
uses: JamesIves/github-pages-deploy-action@v4
7376
with:
74-
folder: build/reports/jacoco/test/html
77+
branch: docs/badge
78+
folder: sdk/target/site/jacoco

0 commit comments

Comments
 (0)