From 8ea9752fc817f3c3807ec51cce22ce394d3b38f2 Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Thu, 29 Jan 2026 20:02:24 +0800 Subject: [PATCH] =?UTF-8?q?chore(ci):=20=E6=9B=B4=E6=96=B0=20.NET=20?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E5=91=BD=E4=BB=A4=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 DotnetCtrfJsonReporter 的输出参数从 -o 替换为 -d 和 -f - 为 ctrf 输出目录添加显式指定参数 - 为输出文件名添加格式化参数 - 保持测试报告生成功能在测试后执行的逻辑不变 --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b149290..d195c1b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -95,9 +95,11 @@ jobs: dotnet tool run DotnetCtrfJsonReporter \ -p "$trx" \ -t nunit \ - -o "ctrf/$name.json" + -d ctrf \ + -f "$name.json" done + # 生成并发布测试报告,无论测试成功或失败都会执行 - name: Test Report uses: dorny/test-reporter@v2