Added test reporter #222
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
# 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 | ||
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 |