dart_lint.yml 998 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. pull_request:
  10. branches: [ main ]
  11. env:
  12. CARGO_TERM_COLOR: always
  13. jobs:
  14. flutter-analyze:
  15. name: flutter analyze
  16. runs-on: ubuntu-latest
  17. steps:
  18. - name: Checkout
  19. uses: actions/checkout@v2
  20. - uses: subosito/flutter-action@v1
  21. with:
  22. channel: "stable"
  23. - name: Flutter pub get
  24. run: flutter pub get
  25. working-directory: frontend/app_flowy
  26. - name: Generate language files
  27. working-directory: frontend/app_flowy
  28. run:
  29. flutter pub run easy_localization:generate --source-dir ./assets/translations -f keys -O lib/generated -o locale_keys.g.dart
  30. - name: flutter analyze
  31. working-directory: frontend/app_flowy
  32. run: flutter analyze