dart_lint.yml 1.1 KB

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: Deps Flutter
  24. run: flutter packages pub get
  25. working-directory: frontend/app_flowy
  26. - name: Code Generation
  27. working-directory: frontend/app_flowy
  28. run: |
  29. flutter packages pub run easy_localization:generate -f keys -o locale_keys.g.dart -S assets/translations -s en.json
  30. flutter packages pub run build_runner build --delete-conflicting-outputs
  31. - name: Run Flutter Analyzer
  32. working-directory: frontend/app_flowy
  33. run: flutter analyze