File tree Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Original file line number Diff line number Diff line change 43
43
with :
44
44
recreate : true
45
45
path : code-coverage-results.md
46
+ - name : Upload Test Results
47
+ if : always()
48
+ uses : actions/upload-artifact@v3
49
+ with :
50
+ name : Test Results
51
+ path : |
52
+ ./temp/testresults/test-results.xml
53
+
54
+ event_file :
55
+ name : " Event File"
56
+ runs-on : ubuntu-latest
57
+ steps :
58
+ - name : Upload
59
+ uses : actions/upload-artifact@v3
60
+ with :
61
+ name : Event File
62
+ path : ${{ github.event_path }}
Original file line number Diff line number Diff line change
1
+ name : Test Results
2
+
3
+ on :
4
+ workflow_run :
5
+ workflows : ["CI"]
6
+ types :
7
+ - completed
8
+ permissions : {}
9
+
10
+ jobs :
11
+ test-results :
12
+ name : Test Results
13
+ runs-on : ubuntu-latest
14
+ if : github.event.workflow_run.conclusion != 'skipped'
15
+
16
+ permissions :
17
+ checks : write
18
+ pull-requests : write
19
+ actions : read
20
+
21
+ steps :
22
+ - name : Download and Extract Artifacts
23
+ uses : dawidd6/action-download-artifact@246dbf436b23d7c49e21a7ab8204ca9ecd1fe615
24
+ with :
25
+ run_id : ${{ github.event.workflow_run.id }}
26
+ path : artifacts
27
+
28
+ - name : Publish Test Results
29
+ uses : EnricoMi/publish-unit-test-result-action@v2
30
+ with :
31
+ commit : ${{ github.event.workflow_run.head_sha }}
32
+ event_file : artifacts/Event File/event.json
33
+ event_name : ${{ github.event.workflow_run.event }}
34
+ files : " artifacts/**/*.xml"
You can’t perform that action at this time.
0 commit comments