Skip to content

Commit

Permalink
ci: Use regex for artifact name
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Oct 28, 2024
1 parent 7f33f0b commit 1b59ce8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 21 deletions.
20 changes: 1 addition & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,24 +116,6 @@ jobs:
- name: Disk space cleanup
uses: jlumbroso/[email protected]

- name: Start summary
id: print-test
run: |
echo "## nf-test tests summary :rocket:" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "This \`${{ matrix.filter }}\` ${{ matrix.shard }}/5 shard was run on \`${{ matrix.profile }}\` | \`NXF_VER=${{ matrix.NXF_VER }}\`, and contains the following test(s):" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
nf-test test \
--ci \
--dryRun \
--junitxml="TEST-${{ matrix.filter }}_${{ matrix.profile }}_${{ matrix.shard }}.xml" \
--shard ${{ matrix.shard }}/5 \
--changed-since HEAD^ \
--follow-dependencies \
--profile "+${{ matrix.profile }}" \
--filter ${{ matrix.filter }} \
| grep PASSED | cut -d "'" -f 2 | sed 's/^/- /' | sort -u >> $GITHUB_STEP_SUMMARY
- name: "Run tests | ${{ matrix.filter }}_${{ matrix.profile }} | ${{ matrix.shard }}/5"
run: |
nf-test test \
Expand All @@ -151,7 +133,7 @@ jobs:
uses: actions/upload-artifact@v3
if: always() # always run even if the previous step fails
with:
name: nf-test-test-results
name: "nf-test-test-results-${{ matrix.filter }}-${{ matrix.profile }}_${{ matrix.shard }}"
path: "TEST-*.xml"
retention-days: 1

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- uses: dorny/test-reporter@v1
with:
artifact: nf-test-test-results # artifact name
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)
path: "*.xml" # Path to test results (inside artifact .zip)
reporter: java-junit # Format of test results

0 comments on commit 1b59ce8

Please sign in to comment.