appflowy_editor_test.yml 978 B

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