Skip to content

Commit

Permalink
Improve results publishing in github
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabricio-ESP committed Oct 4, 2024
1 parent 0628874 commit b353e10
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -278,23 +278,20 @@ jobs:
name: test-results-${{ matrix.os }}.zip
path: ./tests/results.xml

- name: Publish Test Results (Linux)
uses: EnricoMi/publish-unit-test-result-action@v2
if: runner.os == 'Linux'
with:
files: |
./tests/results.xml
publish-test-results:
name: Automated Test Results
needs: test
runs-on: ubuntu-latest
if: always()

- name: Publish Test Results (Windows)
uses: EnricoMi/publish-unit-test-result-action/windows@v2
if: runner.os == 'Windows'
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
files: |
./tests/results.xml
path: ./artifacts

- name: Publish Test Results (MacOS)
uses: EnricoMi/publish-unit-test-result-action/macos@v2
if: runner.os == 'macOS'
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: |
./tests/results.xml
action_fail: true
files: "./artifacts/**/*.xml"

0 comments on commit b353e10

Please sign in to comment.