Test Report #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test Report | |
| on: | |
| workflow_run: | |
| workflows: ["Tests"] | |
| types: | |
| - completed | |
| jobs: | |
| test-report: | |
| if: github.event.workflow_run.conclusion == 'success' || github.event.workflow_run.conclusion == 'failure' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| checks: write | |
| pull-requests: write | |
| steps: | |
| - name: Download Results for Matlab R2022b | |
| uses: actions/download-artifact@v4 | |
| with: | |
| run_id: ${{ github.event.workflow_run.id }} | |
| name: test-results-matlab-R2022b | |
| path: test-results/matlab-R2022b | |
| - name: Download Results for Matlab Latest | |
| uses: actions/download-artifact@v4 | |
| with: | |
| run_id: ${{ github.event.workflow_run.id }} | |
| name: test-results-matlab-latest | |
| path: test-results/matlab-latest | |
| - name: Download Results for Octave | |
| uses: actions/download-artifact@v4 | |
| with: | |
| run_id: ${{ github.event.workflow_run.id }} | |
| name: test-results-octave | |
| path: test-results/octave | |
| - name: Download Event File | |
| uses: actions/download-artifact@v4 | |
| with: | |
| run_id: ${{ github.event.workflow_run.id }} | |
| name: event-file | |
| path: event-file | |
| - name: Publish Test Results | |
| uses: EnricoMi/publish-unit-test-result-action@v2 | |
| with: | |
| commit: ${{ github.event.workflow_run.head_sha }} | |
| files: "test-results/**/testresults.xml" | |
| event_file: event-file/event.json | |
| event_name: ${{ github.event.workflow_run.event}} | |
| comment_mode: ${{ (github.event.workflow_run.event == 'pull_request' || github.event_name == 'pull_request') && 'always' || 'off' }} | |
| check_name: "Test Results" | |