Skip to content

Commit 189c667

Browse files
committed
publish test results when CI is triggered on the new PR
1 parent 82f805c commit 189c667

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/test-assignment-submission.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ jobs:
1414
build:
1515
# The type of runner that the job will run on
1616
runs-on: ubuntu-latest
17+
permissions:
18+
contents: read
19+
actions: read
20+
checks: write
21+
1722

1823
# Steps represent a sequence of tasks that will be executed as part of the job
1924
steps:
@@ -32,3 +37,10 @@ jobs:
3237
# Runs a set of commands using the runners shell
3338
- name: Run tests
3439
run: ./gradlew test
40+
- name: Test Report
41+
uses: dorny/test-reporter@v1
42+
if: success() || failure() # run this step even if previous step failed
43+
with:
44+
name: Submission Test Results # Name of the check run which will be created
45+
path: '**/build/test-results/test/TEST-*.xml' # Path to test results
46+
reporter: java-junit

0 commit comments

Comments
 (0)