diff --git a/.github/workflows/flutter_analysis.yml b/.github/workflows/flutter_analysis.yml new file mode 100644 index 00000000..fdd5e8d0 --- /dev/null +++ b/.github/workflows/flutter_analysis.yml @@ -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 .