dart_lint.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 pub get
  29. working-directory: frontend/app_flowy
  30. - name: Code Generate
  31. working-directory: frontend/app_flowy
  32. run:
  33. flutter pub run easy_localization:generate --source-dir ./assets/translations -f keys -O lib/generated -o locale_keys.g.dart
  34. - name: flutter analyze
  35. working-directory: frontend/app_flowy
  36. run: flutter analyze