Skip to content

Commit

Permalink
ci: Add test report workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Oct 5, 2023
1 parent 8e79d5c commit b696e77
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ jobs:
nf-test test \
--profile=${{ matrix.profile }} \
${{ matrix.test }} \
--tap=test.tap
- uses: pcolby/tap-summary@v1
--junitxml=${{ matrix.test }}-${{ matrix.profile }}.xml
- uses: actions/upload-artifact@v3 # upload test results
if: success() || failure() # run this step even if previous step failed
with:
path: >-
test.tap
name: test-results
path: ${{ matrix.test }}-${{ matrix.profile }}.xml
20 changes: 20 additions & 0 deletions .github/workflows/test-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "Test Report"
on:
workflow_run:
workflows: ["nf-core CI"] # runs after CI workflow
types:
- completed
permissions:
contents: read
actions: read
checks: write
jobs:
report:
runs-on: ubuntu-latest
steps:
- uses: dorny/test-reporter@v1
with:
artifact: test-results # artifact name
name: JEST Tests # Name of the check run which will be created
path: "*.xml" # Path to test results (inside artifact .zip)
reporter: jest-junit # Format of test results

0 comments on commit b696e77

Please sign in to comment.