dart_lint.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # This workflow uses actions that are not certified by GitHub.
  2. # They are provided by a third-party and are governed by
  3. # separate terms of service, privacy policy, and support
  4. # documentation.
  5. name: Flutter lint
  6. on:
  7. push:
  8. branches: [ main ]
  9. paths:
  10. - 'frontend/app_flowy'
  11. pull_request:
  12. branches: [ main ]
  13. paths:
  14. - 'frontend/app_flowy'
  15. env:
  16. CARGO_TERM_COLOR: always
  17. jobs:
  18. flutter-analyze:
  19. name: flutter analyze
  20. runs-on: ubuntu-latest
  21. steps:
  22. - name: Checkout
  23. uses: actions/checkout@v2
  24. - uses: subosito/flutter-action@v1
  25. with:
  26. channel: "stable"
  27. - name: Deps Flutter
  28. run: flutter packages pub get
  29. working-directory: frontend/app_flowy
  30. - name: Code Generation
  31. working-directory: frontend/app_flowy
  32. run: |
  33. flutter packages pub run easy_localization:generate -S ./assets/translations -f keys -O lib/generated -o locale_keys.g.dart
  34. flutter packages pub run build_runner build --delete-conflicting-outputs
  35. - name: Run Flutter Analyzer
  36. working-directory: frontend/app_flowy
  37. run: flutter analyze