Skip to content

Add exclude config to the rule #636

Add exclude config to the rule

Add exclude config to the rule #636

Workflow file for this run

name: Application ON Push & PR DO Code check
on: [ push, pull_request ]
jobs:
code-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Check Flutter SDK version
run: flutter --version
- name: Get dependencies
run: |
find . -name pubspec.yaml -exec sh -c "dirname {} | xargs flutter pub get --directory" \;
- name: Check formatting
run: dart format . --set-exit-if-changed
- name: Run default analyzer
run: flutter analyze
- name: Run custom analyzer
run: dart run custom_lint
- name: Run tests
run: |
# run tests if `test` folder exists
if [ -d test ]
then
flutter test -r expanded
else
echo "Tests not found."
fi