-
-
Notifications
You must be signed in to change notification settings - Fork 98
53 lines (46 loc) · 1.35 KB
/
test_results.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Publish Test Results
on:
workflow_run:
workflows:
- Build and Test
types: [completed]
permissions: {}
jobs:
publish-test-results:
if: github.event.workflow_run.conclusion != 'skipped' && github.event.workflow_run.conclusion != 'cancelled'
runs-on: ubuntu-latest
name: Publish test results
permissions:
checks: write
pull-requests: write
contents: read
issues: read
actions: read
statuses: read
steps:
- name: Download event file
uses: actions/download-artifact@v4
with:
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ github.token }}
name: test-event-file
merge-multiple: false
- name: Download test results
uses: actions/download-artifact@v4
with:
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ github.token }}
pattern: test-results *
merge-multiple: false
- name: Publish Test Results
uses: nike4613/actions-test-results@v3
with:
commit: ${{ github.event.workflow_run.head_sha }}
event_file: event.json
event_name: ${{ github.event.workflow_run.event }}
gist_token: ${{ secrets.gist_token }}
files: |
**/*.trx
**/*.xml
comment_mode: failures
comment_on_commit: true