Skip to content

Added test reporter #222

Added test reporter

Added test reporter #222

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: Dotnet Build and Test
on:
workflow_call:
jobs:
dotnet-macos:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
9.0.x
- name: Download Artifacts
id: download-artifact
uses: actions/download-artifact@v4
with:
merge-multiple: true
path: runtimes
- name: Restore dependencies
run: dotnet restore ./Whisper.net.sln
- name: Build
run: dotnet build ./Whisper.net.sln --no-restore -warnaserror
- name: Test
run: |
dotnet test ./Whisper.net.sln --no-build --logger "trx;LogFileName=TestResults.trx"
- name: Test Reporter
uses: dorny/test-reporter@v1.9.1
if: success() || failure() # run this step even if previous step failed
with:
name: Whisper.net Linux Test Results
path: **/TestResults.trx

Check failure on line 45 in .github/workflows/dotnet.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/dotnet.yml

Invalid workflow file

You have an error in your yaml syntax on line 45
reporter: dotnet-trx
dotnet-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
9.0.x
- name: Download Artifacts
id: download-artifact
uses: actions/download-artifact@v4
with:
merge-multiple: true
path: runtimes
- name: Restore dependencies
run: dotnet restore ./Whisper.net.sln
- name: Build
run: dotnet build ./Whisper.net.sln --no-restore -warnaserror
- name: Test
run: |
dotnet test ./Whisper.net.sln --no-build --logger "trx;LogFileName=TestResults.trx"
- name: Test Reporter
uses: dorny/test-reporter@v1.9.1
if: success() || failure() # run this step even if previous step failed
with:
name: Whisper.net Linux Test Results
path: **/TestResults.trx
reporter: dotnet-trx
dotnet-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
9.0.x
- name: Download Artifacts
id: download-artifact
uses: actions/download-artifact@v4
with:
merge-multiple: true
path: runtimes
- name: Restore dependencies
run: dotnet restore ./Whisper.net.sln
- name: Build
run: dotnet build ./Whisper.net.sln --no-restore -warnaserror
- name: Test
run: |
dotnet test ./Whisper.net.sln --no-build --logger "trx;LogFileName=TestResults.trx"
- name: Test Reporter
uses: dorny/test-reporter@v1.9.1
if: success() || failure() # run this step even if previous step failed
with:
name: Whisper.net Linux Test Results
path: **/TestResults.trx
reporter: dotnet-trx