Dart analyze check fixes #2
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: Push To Master | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build Checks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: "stable" | |
- name: Install project dependencies | |
run: flutter pub get | |
- name: Dart Format Check | |
run: dart format lib/ test/ --set-exit-if-changed | |
- name: Import Sorter Check | |
run: flutter pub run import_sorter:main --no-comments --exit-if-changed | |
- name: Dart Analyze Check | |
run: flutter analyze | |
- name: Dart Test Check | |
run: flutter test |