Skip to content

Commit

Permalink
upload artifacts even if tests failure
Browse files Browse the repository at this point in the history
  • Loading branch information
eruizalo committed Sep 29, 2022
1 parent 61a27c8 commit 4292aaa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/actions/check_build_and_doc/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,27 +56,27 @@ runs:

- name: Test Summary
id: test_summary
if: steps.test_coverage.conclusion == 'success'
if: ${{ success() || failure() && steps.test_coverage.conclusion == 'failure' }}
uses: test-summary/action@v1
with:
paths: "./core/target/test-reports/**/TEST-*.xml"
output: "test-summary.md"

- name: Add summary link
id: add_summary_link
if: steps.test_summary.conclusion == 'success'
if: ${{ success() || failure() && steps.test_summary.conclusion == 'success' }}
shell: bash
run: |
sed '1s/^/| ${{ env.SPARK_VERSION }} | [/' test-summary.md > test-summary-${{ env.SPARK_VERSION }}.md
printf "](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) |\n" >> test-summary-${{ env.SPARK_VERSION }}.md
- name: Add 2 GitHub step summary
if: steps.add_summary_link.conclusion == 'success'
if: ${{ success() || failure() && steps.add_summary_link.conclusion == 'success' }}
shell: bash
run: cat test-summary-${{ env.SPARK_VERSION }}.md >> $GITHUB_STEP_SUMMARY

- name: Upload test summary
if: github.event_name == 'pull_request' && steps.add_summary_link.conclusion == 'success'
if: ${{ github.event_name == 'pull_request' && (success() || failure() && steps.add_summary_link.conclusion == 'success') }}
uses: actions/upload-artifact@v3
with:
name: "test-summary-${{ env.SPARK_VERSION }}.md"
Expand Down

0 comments on commit 4292aaa

Please sign in to comment.