Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codecov #10

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions .github/workflows/flowy_editor_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,21 @@ on:
push:
branches:
- "main"
paths:
- "frontend/app_flowy/packages/appflowy_editor"
- "codecov"

pull_request:
branches:
- "main"
paths:
- "frontend/app_flowy/packages/appflowy_editor"

env:
CARGO_TERM_COLOR: always


jobs:
tests:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}

Expand All @@ -37,4 +35,11 @@ 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
fail_ci_if_error: true
verbose: true

11 changes: 9 additions & 2 deletions frontend/app_flowy/packages/appflowy_editor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,18 @@ and the Flutter guide for

<p align="center">
<a href="https://discord.gg/ZCCYN4Anzq"><b>Discord</b></a> •
<a href="https://twitter.com/appflowy"><b>Twitter</b></a>
<a href="https://twitter.com/appflowy"><b>Twitter</b></a>

</p>

<p align="center">
<a href="https://codecov.io/gh/LucasXu0/AppFlowy" >
<img src="https://codecov.io/gh/LucasXu0/AppFlowy/branch/main/graph/badge.svg?token=L60UELQJFB"/>
</a>
</p>

<div align="center">
<img src="https://github.com/AppFlowy-IO/AppFlowy/blob/main/frontend/app_flowy/packages/appflowy_editor/example/documentation/images/appflowy-editor-example.gif?raw=true" width = "900"/>
<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>

## Key Features
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ export 'src/service/render_plugin_service.dart';
export 'src/service/service.dart';
export 'src/service/selection_service.dart';
export 'src/service/scroll_service.dart';
export 'src/service/toolbar_service.dart';
export 'src/service/keyboard_service.dart';
export 'src/service/input_service.dart';
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class Position {
if (other is! Position) {
return false;
}

return pathEquals(path, other.path) && offset == other.offset;
}

Expand Down