diff --git a/.github/workflows/flutter.yml b/.github/workflows/flutter.yml index ecfd714..0a33b1b 100644 --- a/.github/workflows/flutter.yml +++ b/.github/workflows/flutter.yml @@ -20,9 +20,9 @@ jobs: channel: [ 'stable', 'beta' ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: subosito/flutter-action@v2.8.0 + - uses: subosito/flutter-action@v2.16.0 with: channel: ${{ matrix.channel }} @@ -34,11 +34,11 @@ jobs: - name: Format if: ${{ matrix.channel == 'stable' }} - run: flutter format lib test --set-exit-if-changed + run: dart format lib test example --set-exit-if-changed - name: Analyze if: ${{ matrix.channel == 'stable' }} - run: flutter analyze lib test + run: flutter analyze lib test example - name: Run tests run: flutter test --coverage --coverage-path=lcov.info diff --git a/example/pubspec.lock b/example/pubspec.lock index 413d502..22d9ad4 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -102,6 +102,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.1.0" + flutter_lints: + dependency: "direct dev" + description: + name: flutter_lints + sha256: "3f41d009ba7172d5ff9be5f6e6e6abb4300e263aab8866d2a0842ed2a70f8f0c" + url: "https://pub.dev" + source: hosted + version: "4.0.0" flutter_provider: dependency: transitive description: @@ -139,6 +147,14 @@ packages: url: "https://pub.dev" source: hosted version: "3.0.1" + lints: + dependency: transitive + description: + name: lints + sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235" + url: "https://pub.dev" + source: hosted + version: "4.0.0" listenable_stream: dependency: "direct main" description: diff --git a/example/pubspec.yaml b/example/pubspec.yaml index c4d38c1..cb466aa 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -31,7 +31,9 @@ dependencies: disposebag: ^1.5.1 flutter_disposebag: ^1.1.0 flutter_bloc_pattern: ^3.0.0 + dev_dependencies: + flutter_lints: ^4.0.0 flutter_test: sdk: flutter