mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 10:34:30 +08:00
feat(.github): 添加.NET测试报告功能
- 配置dotnet test命令输出TRX格式的测试结果文件 - 集成dorny/test-reporter@v2来展示.NET测试报告 - 使用TestResults/*.trx路径匹配测试结果文件 - 采用dotnet-trx报告器格式化显示测试统计信息
This commit is contained in:
parent
44b7a223d8
commit
d25b8661ae
17
.github/workflows/auto-tag.yml
vendored
17
.github/workflows/auto-tag.yml
vendored
@ -60,9 +60,20 @@ jobs:
|
||||
run: dotnet restore
|
||||
- name: Build
|
||||
run: dotnet build -c Release --no-restore -p:DebugType=portable
|
||||
- name: Test
|
||||
# run: dotnet test --no-build -c Release --verbosity normal
|
||||
run: dotnet test --no-build -c Release --verbosity normal 2>&1 | grep -E "测试总数|通过数|失败数"
|
||||
- name: Run tests
|
||||
run: |
|
||||
dotnet test \
|
||||
--no-build \
|
||||
-c Release \
|
||||
--logger "trx;LogFileName=test-results.trx"
|
||||
|
||||
- name: Test Report
|
||||
uses: dorny/test-reporter@v2
|
||||
if: always()
|
||||
with:
|
||||
name: .NET Test Results
|
||||
path: TestResults/*.trx
|
||||
reporter: dotnet-trx
|
||||
# 步骤三:计算下一个版本号(若未被跳过)
|
||||
# 自动解析当前最新标签并递增修订号生成新的语义化版本号
|
||||
- name: Get next version
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user