AppFlowy/.github/workflows/dart_lint.yml

40 lines
1.0 KiB
YAML
Raw Normal View History

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.
name: DartLint
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"
- name: Flutter pub get
run: flutter pub get
working-directory: frontend/app_flowy
- name: Generate language files
2021-11-29 13:49:22 +00:00
working-directory: frontend/app_flowy
run:
flutter pub run easy_localization:generate -S assets/translations/
flutter pub run easy_localization:generate -f keys -o locale_keys.g.dart -S assets/translations -s en.json
2021-11-29 13:49:22 +00:00
- name: flutter analyze
working-directory: frontend/app_flowy
run: flutter analyze