Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/bitblazor-testreporter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: 'BitBlazor - Test reporter'

on:
workflow_run:
workflows: ['BitBlazor - Test runner']
types:
- completed

permissions:
contents: read
actions: read
checks: write

jobs:
report:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}

steps:
- name: Test Report
uses: dorny/test-reporter@v2
with:
artifact: dotnet-test-results # artifact name
name: DotNET Tests # Name of the check run which will be created
path: '**/*.trx' # Path to test results (inside artifact .zip)
reporter: dotnet-trx # Format of test results
31 changes: 20 additions & 11 deletions .github/workflows/bitblazor-testrunner.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: BitBlazor - Test runner
name: 'BitBlazor - Test runner'

on:
push:
Expand All @@ -9,8 +9,8 @@ on:
- main
workflow_dispatch:

permissions:
checks: write
#permissions:
# checks: write

jobs:
build_and_test:
Expand Down Expand Up @@ -40,12 +40,21 @@ jobs:

- name: Test
run: dotnet test $SOLUTION --configuration $BUILD_CONFIG --logger "trx;LogFileName=test-runner-results.trx" || true

- name: Test Report
uses: dorny/test-reporter@v1
if: always()

# DEPRECATED - see #70
#- name: Test Report
# uses: dorny/test-reporter@v1
# if: always()
# with:
# name: DotNET Tests
# path: "**/test-runner-results.trx"
# reporter: dotnet-trx
# fail-on-error: true

- name: Upload test results
uses: actions/upload-artifact@v4 # upload test results
if: ${{ !cancelled() }} # run this step even if previous step failed
with:
name: DotNET Tests
path: "**/test-runner-results.trx"
reporter: dotnet-trx
fail-on-error: true
name: dotnet-test-results
path: "**/test-runner-results.trx"
retention-days: 7