flowy_editor_test.yml 966 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. name: FlowyEditor 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 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