appflowy_editor_test.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. name: AppFlowyEditor test
  2. on:
  3. push:
  4. branches:
  5. - "main"
  6. paths:
  7. - "frontend/app_flowy/packages/appflowy_editor/**"
  8. pull_request:
  9. branches:
  10. - "main"
  11. paths:
  12. - "frontend/app_flowy/packages/appflowy_editor/**"
  13. env:
  14. CARGO_TERM_COLOR: always
  15. jobs:
  16. tests:
  17. strategy:
  18. matrix:
  19. os: [macos-latest, ubuntu-latest, windows-latest]
  20. runs-on: ${{ matrix.os }}
  21. steps:
  22. - uses: actions/checkout@v2
  23. - uses: subosito/flutter-action@v2
  24. with:
  25. channel: "stable"
  26. flutter-version: "3.0.5"
  27. cache: true
  28. - name: Run FlowyEditor tests
  29. working-directory: frontend/app_flowy/packages/appflowy_editor
  30. run: |
  31. flutter pub get
  32. flutter format --set-exit-if-changed .
  33. flutter analyze .
  34. flutter test --coverage
  35. - uses: codecov/codecov-action@v3
  36. with:
  37. name: appflowy_editor
  38. env_vars: ${{ matrix.os }}
  39. fail_ci_if_error: true
  40. verbose: true