Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

feat: support codecov (#970)

Lucas.Xufa22c63ac1ff
diff --git a/.github/workflows/flowy_editor_test.yml b/.github/workflows/flowy_editor_test.yml
index 1459a47518..4c957f5c95 100644
--- a/.github/workflows/flowy_editor_test.yml
+++ b/.github/workflows/flowy_editor_test.yml
@@ -37,4 +37,12 @@ jobs:
working-directory: frontend/app_flowy/packages/appflowy_editor
run: |
flutter pub get
- flutter test
+ flutter test --coverage
+
+ - uses: codecov/codecov-action@v3
+ with:
+ name: appflowy_editor
+ env_vars: ${{ matrix.os }}
+ fail_ci_if_error: true
+ verbose: true
+
diff --git a/frontend/app_flowy/packages/appflowy_editor/README.md b/frontend/app_flowy/packages/appflowy_editor/README.md
index 1ccbf55878..9f26c075fd 100644
--- a/frontend/app_flowy/packages/appflowy_editor/README.md
+++ b/frontend/app_flowy/packages/appflowy_editor/README.md
@@ -20,6 +20,12 @@ and the Flutter guide for
<a href="https://twitter.com/appflowy"><b>Twitter</b></a>
</p>
+<p align="center">
+ <a href="https://codecov.io/gh/AppFlowy-IO/AppFlowy" >
+ <img src="https://codecov.io/gh/AppFlowy-IO/AppFlowy/branch/main/graph/badge.svg?token=YTFKUF70B6"/>
+ </a>
+</p>
+
<div align="center">
<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"/>
</div>