appflowy_editor_test.yml 1.1 KB

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