Skip to content

Commit e2ed921

Browse files
committed
fix: 修复覆盖率生成命令语法
- 使用正确的 moon_cove_report 命令而不是 moon coverage report - 添加报告内容预览便于调试 - 本地测试确认命令可以正常生成 6119 字节的覆盖率文件
1 parent 061bc58 commit e2ed921

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ jobs:
2929
moon coverage clean
3030
# 运行MoonBit测试并生成覆盖率
3131
moon coverage analyze
32-
# 生成Codecov兼容的coverage报告
33-
moon coverage report -f coveralls -o coverage.json
32+
# 生成Codecov兼容的coverage报告(使用正确的命令)
33+
moon_cove_report -f coveralls -o coverage.json
3434
# 验证文件生成
3535
if [ -f "coverage.json" ]; then
3636
echo "✅ Coverage report generated successfully"
3737
echo "File size: $(wc -c < coverage.json) bytes"
38+
head -5 coverage.json
3839
else
3940
echo "❌ coverage.json not found"
4041
exit 1

0 commit comments

Comments
 (0)