Publish Test Report #361
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: 'Publish Test Report' | |
on: | |
workflow_run: | |
workflows: ['ci-pr'] # runs after ci-pr workflow | |
types: | |
- completed | |
workflow_dispatch: | |
inputs: | |
workflow_run_id: | |
description: 'ID of the workflow run to download artifacts from.' | |
required: true | |
default: '' | |
permissions: | |
contents: read | |
actions: read | |
checks: write | |
jobs: | |
publish-reports: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
max-parallel: 10 | |
matrix: | |
godot-version: ['4.2', '4.2.1', '4.2.2', '4.3'] | |
godot-status: ['stable'] | |
godot-net: ['-net', ''] | |
include: | |
- godot-version: '4.4' | |
godot-status: 'dev6' | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
sparse-checkout: .github | |
- name: Download artifacts | |
uses: actions/download-artifact@v4.1.8 | |
with: | |
name: artifact_gdUnit4_Godot${{ matrix.godot-version }}-${{ matrix.godot-status }}${{ matrix.godot-net }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
repository: MikeSchulze/gdUnit4 | |
run-id: ${{ github.event.inputs.workflow_run_id || github.event.workflow_run.id }} | |
- name: 'Publish Test Results' | |
if: ${{ matrix.godot-net == '' }} | |
uses: dorny/test-reporter@v1.9.1 | |
with: | |
name: report_gdUnit4_Godot${{ matrix.godot-version }}-${{ matrix.godot-status }} | |
# using artifact to download is broken since download-artifact@v4 see https://github.com/dorny/test-reporter/issues/363 | |
# We do the download manually on step `Download artifacts` | |
#artifact: artifact_gdUnit4_Godot${{ matrix.godot-version }}-${{ matrix.godot-status }} | |
path: './home/runner/work/gdUnit4/gdUnit4/reports/**/results.xml' | |
reporter: java-junit | |
fail-on-error: 'false' | |
fail-on-empty: 'false' | |
- name: 'Publish Test Adapter Results' | |
if: ${{ matrix.godot-net == '-net' }} | |
uses: dorny/test-reporter@v1.9.1 | |
with: | |
name: report_gdUnit4_Godot${{ matrix.godot-version }}-${{ matrix.godot-status }}-net | |
# using artifact to download is broken since download-artifact@v4 see https://github.com/dorny/test-reporter/issues/363 | |
# We do the download manually on step `Download artifacts` | |
#artifact: artifact_gdUnit4_Godot${{ matrix.godot-version }}-${{ matrix.godot-status }}${{ matrix.godot-net }} | |
path: './home/runner/work/gdUnit4/gdUnit4/reports/*.xml' | |
reporter: dotnet-trx | |
fail-on-error: 'false' | |
fail-on-empty: 'false' |