Skip to content

Commit 4f84d79

Browse files
committed
Write tests summary with Liquid Test Reports
DISABLE_GITHUB_REPORTER disables the built-in TUnit reporter
1 parent e026e26 commit 4f84d79

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.config/dotnet-tools.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
"dotnet-stryker"
1616
],
1717
"rollForward": true
18+
},
19+
"liquidtestreports.cli": {
20+
"version": "2.0.0-beta.6",
21+
"commands": [
22+
"liquid"
23+
],
24+
"rollForward": false
1825
}
1926
}
2027
}

.github/workflows/continuous-integration.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@ on: push
55
env:
66
Configuration: Release
77
ContinuousIntegrationBuild: true
8+
DISABLE_GITHUB_REPORTER: true
89
DOTNET_CLI_TELEMETRY_OPTOUT: true
910
DOTNET_NOLOGO: true
1011
DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: true
1112
TERM: xterm
1213

14+
defaults:
15+
run:
16+
shell: bash
17+
1318
jobs:
1419
package:
1520
strategy:
@@ -26,8 +31,8 @@ jobs:
2631
- name: 🏎 Optimize Windows runner
2732
if: matrix.os == 'windows-latest'
2833
run: |
29-
echo "DOTNET_INSTALL_DIR=D:\dotnet" >> $env:GITHUB_ENV
30-
echo "NUGET_PACKAGES=D:\nuget" >> $env:GITHUB_ENV
34+
echo "DOTNET_INSTALL_DIR=D:\dotnet" >> $GITHUB_ENV
35+
echo "NUGET_PACKAGES=D:\nuget" >> $GITHUB_ENV
3136
- name: 🧑‍🔧 Install .NET SDK
3237
uses: actions/setup-dotnet@v4
3338
- name: ℹ️ Show .NET info
@@ -45,6 +50,10 @@ jobs:
4550
run: dotnet build --no-restore
4651
- name: 🧪 Run tests
4752
run: dotnet test --no-build
53+
- name: 📊 Write tests summary
54+
run: |
55+
dotnet tool restore
56+
dotnet liquid --inputs "File=*.trx" --output-file $GITHUB_STEP_SUMMARY
4857
- name: 📤 Upload received files from failing tests
4958
uses: actions/upload-artifact@v4
5059
if: failure()

0 commit comments

Comments
 (0)