Skip to content

Commit fe4b795

Browse files
committed
Save test reports when tests fail
1 parent 5d29c83 commit fe4b795

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/codecov_code_coverage.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
pull_request:
88
branches:
99
- 'main'
10+
workflow_dispatch:
1011

1112
jobs:
1213
build:
@@ -30,3 +31,11 @@ jobs:
3031
name: report
3132
files: build/reports/kover/report.xml
3233
token: ${{ secrets.CODECOV_TOKEN }}
34+
35+
- name: Upload test reports
36+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
37+
if: failure()
38+
with:
39+
name: test-reports
40+
path: '**/reports/tests/**'
41+
retention-days: 7

0 commit comments

Comments
 (0)