-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5363eff
commit dc1bbc1
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Flutter Analysis | ||
on: [pull_request, workflow_dispatch] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
# Setup the flutter environment. | ||
- uses: subosito/flutter-action@v1 | ||
with: | ||
channel: 'stable' # 'dev', 'alpha', default to: 'stable' | ||
# flutter-version: '1.12.x' # you can also specify exact version of flutter | ||
|
||
# Get flutter dependencies. | ||
- run: flutter pub get | ||
|
||
# Check for any formatting issues in the code. | ||
- run: flutter format --set-exit-if-changed . | ||
|
||
# Statically analyze the Dart code for any errors. | ||
- run: flutter analyze . |