mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
51 lines
1018 B
YAML
51 lines
1018 B
YAML
name: AppFlowyEditor test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
- "release/*"
|
|
|
|
pull_request:
|
|
branches:
|
|
- "main"
|
|
- "release/*"
|
|
paths:
|
|
- "frontend/app_flowy/packages/appflowy_editor/**"
|
|
|
|
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:
|
|
channel: "stable"
|
|
flutter-version: "3.0.5"
|
|
cache: true
|
|
|
|
- name: Run FlowyEditor tests
|
|
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
|
|
env_vars: ${{ matrix.os }}
|
|
fail_ci_if_error: true
|
|
verbose: true
|
|
|