Don't use BuildContext across async gaps #11
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: automatic linting | |
on: | |
push: | |
branches: | |
- "master" | |
paths: | |
- '**.dart' | |
jobs: | |
linting: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v1 | |
with: | |
channel: 'stable' | |
flutter-version: '3.7.x' | |
- name: Get dependencies | |
run: flutter pub get | |
- name: Check for formatting issues (run "dart format . ") | |
run: dart format --line-length=100 . | |
- name: Push a commit with the changed files | |
continue-on-error: true | |
run: | | |
git config user.name Github-actions | |
git config user.email [email protected] | |
git add . | |
git commit -m "Automatic linting" | |
git push |