diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7249747614..dfd030faf8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -147,23 +147,13 @@ jobs: --profile "+${{ matrix.profile }}" \ --filter ${{ matrix.filter }} - - name: Print success in summary - if: success() - run: | - echo "" >> $GITHUB_STEP_SUMMARY - echo "All test(s) successfull :tada:" >> $GITHUB_STEP_SUMMARY - - - name: Print failure in summary - if: failure() - run: | - echo "" >> $GITHUB_STEP_SUMMARY - echo "Some test(s) failed :cold_sweat:" >> $GITHUB_STEP_SUMMARY - - - name: Publish Test Report - uses: mikepenz/action-junit-report@v4 - if: success() || failure() # always run even if the previous step fails + - name: Upload Test Report + uses: actions/upload-artifact@v3 + if: always() # always run even if the previous step fails with: - report_paths: "TEST-*.xml" + name: nf-test-test-results + path: "TEST-*.xml" + retention-days: 1 - name: Clean up if: success() || failure() diff --git a/.github/workflows/test-report.yml b/.github/workflows/test-report.yml new file mode 100644 index 0000000000..ecf5a2567a --- /dev/null +++ b/.github/workflows/test-report.yml @@ -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: nf-test-test-results # artifact name + name: nf-test Tests # Name of the check run which will be created + path: "TEST-*.xml" # Path to test results (inside artifact .zip) + reporter: java-junit # Format of test results