dart_lint.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. flutter-version: '3.0.0'
  23. channel: "stable"
  24. - uses: actions-rs/toolchain@v1
  25. with:
  26. toolchain: 'stable-2022-01-20'
  27. - name: Rust Deps
  28. working-directory: frontend
  29. run: |
  30. cargo install cargo-make
  31. cargo make flowy_dev
  32. - name: Flutter Deps
  33. run: flutter packages pub get
  34. working-directory: frontend/app_flowy
  35. - name: Build FlowySDK
  36. working-directory: frontend
  37. run: |
  38. cargo make --profile development-linux-x86_64 flowy-sdk-dev
  39. - name: Code Generation
  40. working-directory: frontend/app_flowy
  41. run: |
  42. flutter packages pub run easy_localization:generate -f keys -o locale_keys.g.dart -S assets/translations -s en.json
  43. flutter packages pub run build_runner build --delete-conflicting-outputs
  44. - name: Run Flutter Analyzer
  45. working-directory: frontend/app_flowy
  46. run: flutter analyze