2021-11-29 13:49:22 +00:00
|
|
|
# This workflow uses actions that are not certified by GitHub.
|
|
|
|
# They are provided by a third-party and are governed by
|
|
|
|
# separate terms of service, privacy policy, and support
|
|
|
|
# documentation.
|
|
|
|
|
2022-02-10 01:15:16 +00:00
|
|
|
name: Flutter lint
|
2021-11-29 13:49:22 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
2021-11-30 07:35:15 +00:00
|
|
|
|
2021-11-29 13:49:22 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
flutter-analyze:
|
|
|
|
name: flutter analyze
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- uses: subosito/flutter-action@v1
|
|
|
|
with:
|
2022-02-09 12:56:29 +00:00
|
|
|
channel: "stable"
|
2022-02-09 13:39:12 +00:00
|
|
|
- name: Flutter pub get
|
|
|
|
run: flutter pub get
|
|
|
|
working-directory: frontend/app_flowy
|
2022-02-09 12:46:39 +00:00
|
|
|
- name: Generate language files
|
2021-11-29 13:49:22 +00:00
|
|
|
working-directory: frontend/app_flowy
|
2022-02-09 12:35:07 +00:00
|
|
|
run:
|
2022-02-09 13:47:52 +00:00
|
|
|
flutter pub run easy_localization:generate --source-dir ./assets/translations -f keys -O lib/generated -o locale_keys.g.dart
|
2021-11-29 13:49:22 +00:00
|
|
|
- name: flutter analyze
|
|
|
|
working-directory: frontend/app_flowy
|
|
|
|
run: flutter analyze
|
|
|
|
|