Skip to content

Commit 780add8

Browse files
committed
fix: 简化CI配置并修复codecov忽略规则
- 简化覆盖率生成步骤,移除复杂验证 - 修复codecov.yml中的ignore规则,移除**/*.json - 确保coverage.json文件能被正确处理
1 parent b299f13 commit 780add8

File tree

3 files changed

+3
-17
lines changed

3 files changed

+3
-17
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,10 @@ jobs:
2525
2626
- name: Generate Coverage Report
2727
run: |
28-
# 清理之前的覆盖率文件
2928
moon coverage clean
30-
# 运行MoonBit测试并生成覆盖率
3129
moon coverage analyze
32-
# 生成Codecov兼容的coverage报告
3330
moon coverage report -f coveralls -o coverage.json
34-
# 验证文件生成
35-
if [ -f "coverage.json" ]; then
36-
echo "✅ Coverage report generated successfully"
37-
echo "File size: $(wc -c < coverage.json) bytes"
38-
head -5 coverage.json
39-
else
40-
echo "❌ coverage.json not found"
41-
exit 1
42-
fi
31+
ls -la coverage.json
4332
4433
- name: Upload Coverage to Codecov
4534
uses: codecov/codecov-action@v4

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ReactiveX for MoonBit
22

3-
[![codecov](https://codecov.io/gh/CGaaaaaa/ReactiveX/branch/main/graph/badge.svg?token=YOUR_TOKEN)](https://codecov.io/gh/CGaaaaaa/ReactiveX)
3+
[![codecov](https://codecov.io/gh/CGaaaaaa/ReactiveX/branch/main/graph/badge.svg)](https://codecov.io/gh/CGaaaaaa/ReactiveX)
44
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
55
[![Tests Passing](https://img.shields.io/badge/Tests-Passing-brightgreen.svg)](src/test.mbt)
66

codecov.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ comment:
2424
require_base: no
2525
require_head: yes
2626

27-
28-
2927
ignore:
3028
- "node_modules"
3129
- "target"
32-
- "_coverage"
33-
- "**/*.json"
30+
- "_coverage"

0 commit comments

Comments
 (0)