2022-10-07 07:25:33 +00:00
|
|
|
name: AppFlowyEditor test
|
2022-08-14 04:39:37 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "main"
|
|
|
|
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- "main"
|
2022-08-31 07:49:01 +00:00
|
|
|
paths:
|
2022-09-02 13:19:55 +00:00
|
|
|
- "frontend/app_flowy/packages/appflowy_editor/**"
|
2022-08-14 04:39:37 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
tests:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [macos-latest, ubuntu-latest, windows-latest]
|
|
|
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- uses: subosito/flutter-action@v2
|
|
|
|
with:
|
2022-08-14 04:39:37 +00:00
|
|
|
channel: "stable"
|
|
|
|
flutter-version: "3.0.5"
|
2022-08-14 04:39:37 +00:00
|
|
|
cache: true
|
|
|
|
|
|
|
|
- name: Run FlowyEditor tests
|
2022-08-18 08:42:36 +00:00
|
|
|
working-directory: frontend/app_flowy/packages/appflowy_editor
|
2022-08-14 04:39:37 +00:00
|
|
|
run: |
|
|
|
|
flutter pub get
|
2022-10-07 07:25:33 +00:00
|
|
|
flutter format --set-exit-if-changed .
|
|
|
|
flutter analyze .
|
2022-09-02 08:58:05 +00:00
|
|
|
flutter test --coverage
|
|
|
|
|
|
|
|
- uses: codecov/codecov-action@v3
|
|
|
|
with:
|
|
|
|
name: appflowy_editor
|
|
|
|
env_vars: ${{ matrix.os }}
|
|
|
|
fail_ci_if_error: true
|
|
|
|
verbose: true
|
|
|
|
|