Add fork repositories support for reporting regression tests #1
Workflow file for this run
This file contains 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 results | ||
on: | ||
workflow_run: | ||
workflows: ["CI"] | ||
types: | ||
- completed | ||
permissions: {} | ||
jobs: | ||
make-test-report: | ||
name: Make test report | ||
runs-on: ubuntu-latest | ||
if: github.event.workflow_run.conclusion != 'skipped' | ||
permissions: | ||
checks: write | ||
actions: read | ||
steps: | ||
- name: Download and extract artifacts | ||
uses: dawidd6/action-download-artifact@246dbf436b23d7c49e21a7ab8204ca9ecd1fe615 | ||
with: | ||
run_id: ${{ github.event.workflow_run.id }} | ||
path: artifacts | ||
- name: Publish test results | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
with: | ||
check_name: cocotb test results | ||
comment_mode: off | ||
commit: ${{ github.event.workflow_run.head_sha }} | ||
event_file: artifacts/regression_tests_artifacts/event.json | ||
event_name: ${{ github.event.workflow_run.event }} | ||
files: artifacts/regression_tests_artifacts/test/regression/cocotb/results.xml |