File tree Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change 4343 with :
4444 recreate : true
4545 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 Reports
2+
3+ on :
4+ workflow_run :
5+ workflows : ["CI"]
6+ types :
7+ - completed
8+ permissions : {}
9+
10+ jobs :
11+ test_reports :
12+ name : Test Reports
13+ runs-on : ubuntu-latest
14+ if : {{ github.event.workflow_run.conclusion != 'skipped' && github.event.event_name== 'pull_request' }}
15+ permissions :
16+ checks : write
17+ pull-requests : write
18+ actions : read
19+ steps :
20+ - name : Download and Extract Artifacts
21+ uses : dawidd6/action-download-artifact@246dbf436b23d7c49e21a7ab8204ca9ecd1fe615
22+ with :
23+ run_id : ${{ github.event.workflow_run.id }}
24+ path : artifacts
25+ - name : Publish Test Results
26+ uses : EnricoMi/publish-unit-test-result-action@v2
27+ with :
28+ commit : ${{ github.event.workflow_run.head_sha }}
29+ event_file : artifacts/Event File/event.json
30+ event_name : ${{ github.event.workflow_run.event }}
31+ files : " artifacts/**/*.xml"
You can’t perform that action at this time.
0 commit comments