Skip to content

Commit e9d79fd

Browse files
committed
Pull in junit for actions
1 parent 759eded commit e9d79fd

File tree

3 files changed

+48
-2
lines changed

3 files changed

+48
-2
lines changed

.github/workflows/eval.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,16 @@ jobs:
6666
name: codecov-evals
6767
fail_ci_if_error: false
6868

69-
- name: Upload test results to Codecov
69+
- name: Upload results to Codecov
7070
if: ${{ !cancelled() }}
7171
uses: codecov/test-results-action@v1
7272
with:
7373
token: ${{ secrets.CODECOV_TOKEN }}
74+
75+
- name: Upload Test Report
76+
uses: actions/upload-artifact@v3
77+
if: always()
78+
with:
79+
name: eval-junit-results
80+
path: '**/*.junit.xml'
81+
retention-days: 1

.github/workflows/report.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: report
2+
on:
3+
workflow_run:
4+
workflows: [ eval, test ]
5+
types: [ completed ]
6+
7+
permissions:
8+
checks: write
9+
10+
jobs:
11+
checks:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Download Test Report
15+
uses: dawidd6/action-download-artifact@07ab29fd4a977ae4d2b275087cf67563dfdf0295
16+
with:
17+
name: test-junit-results
18+
workflow: ${{ github.event.workflow.id }}
19+
run_id: ${{ github.event.workflow_run.id }}
20+
- name: Download Eval Report
21+
uses: dawidd6/action-download-artifact@07ab29fd4a977ae4d2b275087cf67563dfdf0295
22+
with:
23+
name: eval-junit-results
24+
workflow: ${{ github.event.workflow.id }}
25+
run_id: ${{ github.event.workflow_run.id }}
26+
- name: Publish Test Report
27+
uses: mikepenz/action-junit-report@cf701569b05ccdd861a76b8607a66d76f6fd4857
28+
with:
29+
commit: ${{ github.event.workflow_run.head_sha }}
30+
report_paths: '**/*.junit.xml'

.github/workflows/test.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,16 @@ jobs:
5555
name: codecov-unittests
5656
fail_ci_if_error: false
5757

58-
- name: Upload test results to Codecov
58+
- name: Upload results to Codecov
5959
if: ${{ !cancelled() }}
6060
uses: codecov/test-results-action@v1
6161
with:
6262
token: ${{ secrets.CODECOV_TOKEN }}
63+
64+
- name: Upload Test Report
65+
uses: actions/upload-artifact@v3
66+
if: always()
67+
with:
68+
name: test-junit-results
69+
path: '**/*.junit.xml'
70+
retention-days: 1

0 commit comments

Comments
 (0)