Skip to content

Commit

Permalink
ci: avoid failing job on test report failure
Browse files Browse the repository at this point in the history
  • Loading branch information
yaronyam committed Mar 9, 2024
1 parent f3997ed commit cfadd32
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,22 @@ jobs:
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
if: always()
continue-on-error: true
with:
name: Test Results (${{inputs.IDEA_VERSION}},${{inputs.WITH_IDEA_PLUGINS}})
path: build/test-results/**/*.xml
reporter: java-junit

- name: Test Results artifacts
uses: actions/upload-artifact@v2
if: success() || failure()
if: always()
with:
name: test results ${{inputs.IDEA_VERSION}} plugins=${{inputs.WITH_IDEA_PLUGINS}}
path: build/reports/**

- name: On failure - log report
# if: failure()
if: ( success() || failure() ) && steps.run-test.outcome != 'success'
if: steps.run-test.outcome != 'success'
run: ./print_surefire_reports.sh

- name: trace file system state
Expand All @@ -65,6 +66,7 @@ jobs:
- name: Upload to Codecov
uses: codecov/codecov-action@v4
if: github.event.pull_request.head.repo.fork == false
with:
# files: ./coverage1.xml,./coverage2.xml # optional
# flags: unittests # optional
Expand Down

0 comments on commit cfadd32

Please sign in to comment.