Publish Test Report #202
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'] | |
include: | |
- godot-version: '4.4' | |
godot-status: 'dev3' | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
sparse-checkout: .github | |
# publish Analyzer Tests results | |
- name: Download Analyzer tests artifacts | |
uses: actions/[email protected] | |
with: | |
name: artifact_analyzer | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
repository: MikeSchulze/gdUnit4Net | |
run-id: ${{ github.event.inputs.workflow_run_id || github.event.workflow_run.id }} | |
# publish TestAdapter Tests results | |
- name: Download TestAdapter tests artifacts | |
uses: actions/[email protected] | |
with: | |
name: artifact_adapter_tests | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
repository: MikeSchulze/gdUnit4Net | |
run-id: ${{ github.event.inputs.workflow_run_id || github.event.workflow_run.id }} | |
- name: Publish API Test Results | |
uses: dorny/[email protected] | |
with: | |
name: artifact_analyzer | |
# 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/gdUnit4Net/gdUnit4Net/analyzers/test/TestResults/*.trx' | |
reporter: dotnet-trx | |
fail-on-error: 'false' | |
fail-on-empty: 'false' | |
# publish Run gdUnit4-action results | |
- name: Download action tests artifacts | |
uses: actions/[email protected] | |
with: | |
name: artifact_action_example_Godot${{ matrix.godot-version }}-${{ matrix.godot-status }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
repository: MikeSchulze/gdUnit4Net | |
run-id: ${{ github.event.inputs.workflow_run_id || github.event.workflow_run.id }} | |
- name: Publish action Test Results | |
uses: dorny/[email protected] | |
with: | |
name: report_action_example_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 }}${{ matrix.godot-net }} | |
path: './home/runner/work/gdUnit4Net/gdUnit4Net/example/reports/*.xml' | |
reporter: dotnet-trx | |
fail-on-error: 'false' | |
fail-on-empty: 'false' | |
# publish API Tests results | |
- name: Download API tests artifacts | |
uses: actions/[email protected] | |
with: | |
name: artifact_api_tests_Godot${{ matrix.godot-version }}-${{ matrix.godot-status }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
repository: MikeSchulze/gdUnit4Net | |
run-id: ${{ github.event.inputs.workflow_run_id || github.event.workflow_run.id }} | |
- name: Publish API Test Results | |
uses: dorny/[email protected] | |
with: | |
name: report_api_tests_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 }}${{ matrix.godot-net }} | |
path: './home/runner/work/gdUnit4Net/gdUnit4Net/test/TestResults/*.trx' | |
reporter: dotnet-trx | |
fail-on-error: 'false' | |
fail-on-empty: 'false' |