Skip to content

Commit f83ba25

Browse files
authored
Merge pull request graphql-java#3749 from graphql-java/test-result-comment-bot
Add test result comment bot
2 parents 605c428 + d6facee commit f83ba25

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/master.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- master
7+
permissions: # For test summary bot
8+
checks: write
79
jobs:
810
buildAndPublish:
911
runs-on: ubuntu-latest
@@ -22,3 +24,8 @@ jobs:
2224
distribution: 'corretto'
2325
- name: build test and publish
2426
run: ./gradlew assemble && ./gradlew check --info && ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository -x check --info --stacktrace
27+
- name: Publish Test Results
28+
uses: EnricoMi/[email protected]
29+
if: always()
30+
with:
31+
files: '**/build/test-results/test/TEST-*.xml'

.github/workflows/pull_request.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
- 21.x
1212
- 20.x
1313
- 19.x
14+
permissions: # For test comment bot
15+
checks: write
16+
pull-requests: write
1417
jobs:
1518
buildAndTest:
1619
runs-on: ubuntu-latest
@@ -24,3 +27,9 @@ jobs:
2427
distribution: 'corretto'
2528
- name: build and test
2629
run: ./gradlew assemble && ./gradlew check --info --stacktrace
30+
- name: Publish Test Results
31+
uses: EnricoMi/[email protected]
32+
if: always()
33+
with:
34+
files: '**/build/test-results/test/TEST-*.xml'
35+

0 commit comments

Comments
 (0)