Skip to content

Commit fa22c63

Browse files
authored
feat: support codecov (#970)
* feat: support codecov
1 parent 454c7b6 commit fa22c63

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/flowy_editor_test.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,12 @@ jobs:
3737
working-directory: frontend/app_flowy/packages/appflowy_editor
3838
run: |
3939
flutter pub get
40-
flutter test
40+
flutter test --coverage
41+
42+
- uses: codecov/codecov-action@v3
43+
with:
44+
name: appflowy_editor
45+
env_vars: ${{ matrix.os }}
46+
fail_ci_if_error: true
47+
verbose: true
48+

frontend/app_flowy/packages/appflowy_editor/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ and the Flutter guide for
2020
<a href="https://twitter.com/appflowy"><b>Twitter</b></a>
2121
</p>
2222

23+
<p align="center">
24+
<a href="https://codecov.io/gh/AppFlowy-IO/AppFlowy" >
25+
<img src="https://codecov.io/gh/AppFlowy-IO/AppFlowy/branch/main/graph/badge.svg?token=YTFKUF70B6"/>
26+
</a>
27+
</p>
28+
2329
<div align="center">
2430
<img src="https://github.com/AppFlowy-IO/AppFlowy/blob/main/frontend/app_flowy/packages/appflowy_editor/documentation/images/appflowy-editor-example.gif?raw=true" width = "700" style = "padding: 100"/>
2531
</div>

0 commit comments

Comments
 (0)