AppFlowy/.github/workflows/appflowy_editor_test.yml

53 lines
1.1 KiB
YAML
Raw Normal View History

name: AppFlowyEditor test
on:
push:
branches:
- "main"
2022-10-29 09:00:40 +00:00
- "release/*"
pull_request:
branches:
- "main"
2022-10-29 09:00:40 +00:00
- "release/*"
paths:
2022-09-02 13:19:55 +00:00
- "frontend/app_flowy/packages/appflowy_editor/**"
env:
CARGO_TERM_COLOR: always
FLUTTER_VERSION: "3.3.9"
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:
channel: "stable"
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true
- name: Run FlowyEditor tests
2022-08-18 08:42:36 +00:00
working-directory: frontend/app_flowy/packages/appflowy_editor
run: |
flutter pub get
flutter format --set-exit-if-changed .
flutter analyze .
flutter test --coverage
- uses: codecov/codecov-action@v3
with:
name: appflowy_editor
flags: appflowy_editor
env_vars: ${{ matrix.os }}
fail_ci_if_error: true
verbose: true