Skip to content

Commit

Permalink
Create flutter_analysis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MahanRahmati authored Mar 5, 2022
1 parent 5363eff commit dc1bbc1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/flutter_analysis.yml
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 .

0 comments on commit dc1bbc1

Please sign in to comment.