Skip to content

Commit 7f33f0b

Browse files
committed
ci(#1699): Add Test Report
1 parent b5fe848 commit 7f33f0b

File tree

2 files changed

+26
-16
lines changed

2 files changed

+26
-16
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -147,23 +147,13 @@ jobs:
147147
--profile "+${{ matrix.profile }}" \
148148
--filter ${{ matrix.filter }}
149149
150-
- name: Print success in summary
151-
if: success()
152-
run: |
153-
echo "" >> $GITHUB_STEP_SUMMARY
154-
echo "All test(s) successfull :tada:" >> $GITHUB_STEP_SUMMARY
155-
156-
- name: Print failure in summary
157-
if: failure()
158-
run: |
159-
echo "" >> $GITHUB_STEP_SUMMARY
160-
echo "Some test(s) failed :cold_sweat:" >> $GITHUB_STEP_SUMMARY
161-
162-
- name: Publish Test Report
163-
uses: mikepenz/action-junit-report@v4
164-
if: success() || failure() # always run even if the previous step fails
150+
- name: Upload Test Report
151+
uses: actions/upload-artifact@v3
152+
if: always() # always run even if the previous step fails
165153
with:
166-
report_paths: "TEST-*.xml"
154+
name: nf-test-test-results
155+
path: "TEST-*.xml"
156+
retention-days: 1
167157

168158
- name: Clean up
169159
if: success() || failure()

.github/workflows/test-report.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "Test Report"
2+
on:
3+
workflow_run:
4+
workflows: ["nf-core CI"] # runs after CI workflow
5+
types:
6+
- completed
7+
permissions:
8+
contents: read
9+
actions: read
10+
checks: write
11+
jobs:
12+
report:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: dorny/test-reporter@v1
16+
with:
17+
artifact: nf-test-test-results # artifact name
18+
name: nf-test Tests # Name of the check run which will be created
19+
path: "TEST-*.xml" # Path to test results (inside artifact .zip)
20+
reporter: java-junit # Format of test results

0 commit comments

Comments
 (0)