chore(ci): 简化CTRF报告生成配置

移除手动创建目录和多参数调用方式,改用简化的命令行参数
直接指定TRX文件路径,提高构建脚本的可读性和维护性
This commit is contained in:
GeWuYou 2026-01-29 17:32:24 +08:00
parent 9a158d6c7e
commit 524ceff770

View File

@ -66,13 +66,7 @@ jobs:
--no-build \
--logger trx \
--results-directory TestResults
# 创建输出目录
mkdir -p ctrf
# 生成 CTRF 报告 (根据工具文档调整参数)
dotnet tool run DotnetCtrfJsonReporter \
--trx-file-path "TestResults/*.trx" \
--output-file "ctrf/report.json"
dotnet tool run DotnetCtrfJsonReporter -t "TestResults/testResults.trx"
- name: Debug - Verify CTRF files
if: always()
run: |