Skip to content

Commit 0830218

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

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.config/dotnet-tools.json

+7
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

+11-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,17 @@ 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
REPORTGENERATOR_LICENSE: ${{ secrets.REPORTGENERATOR_LICENSE }}
1213
TERM: xterm
1314

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

0 commit comments

Comments
 (0)