bug fixes #597
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Flutter Analysis | |
on: | |
push: | |
branches: | |
- main | |
release: | |
types: [published] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
package-analysis: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
submodules: recursive | |
- name: Install Flutter | |
uses: subosito/flutter-action@v2.8.0 | |
with: | |
channel: stable | |
- run: flutter upgrade | |
- run: flutter pub get | |
- run: flutter gen-l10n | |
- name: Check formatting | |
run: dart format --set-exit-if-changed . | |
- name: Run analysis | |
run: flutter analyze | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
submodules: recursive | |
- name: Install Flutter | |
uses: subosito/flutter-action@v2.8.0 | |
with: | |
channel: stable | |
- run: flutter upgrade | |
- run: flutter pub get | |
- run: flutter gen-l10n | |
- run: flutter test |