diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 29b5aed4a..cb94b0410 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -111,8 +111,8 @@ jobs: channel: ${{ inputs.flutter_channel }} - uses: bluefireteam/melos-action@main - - run: melos run format-check - - run: melos run analyze -- ${{ inputs.fatal_warnings && '--fatal-infos' || '--no-fatal-warnings --no-fatal-infos' }} + - run: melos format --set-exit-if-changed + - run: melos analyze ${{ inputs.fatal_warnings && '--fatal-infos' || '--no-fatal-warnings' }} - run: melos run test - name: Lint Code Base diff --git a/melos.yaml b/melos.yaml index c58e93825..a05b245ac 100644 --- a/melos.yaml +++ b/melos.yaml @@ -13,21 +13,9 @@ command: scripts: lint: - run: melos run analyze && melos run format + run: melos analyze && melos format description: Run all static analysis checks. - analyze: - run: melos exec -c 10 flutter analyze - description: Run `flutter analyze` for all packages. - - format: - run: melos exec dart format . --fix - description: Run `dart format` for all packages. - - format-check: - run: melos exec dart format . --set-exit-if-changed - description: Run `dart format` checks for all packages. - dartdoc: run: melos exec dart doc description: Run `dart doc` for all non-example packages. diff --git a/pubspec.yaml b/pubspec.yaml index 8d3ccecd5..a1bf580b6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,4 +4,4 @@ environment: sdk: '>=3.0.0 <4.0.0' dev_dependencies: - melos: ^3.0.0 + melos: ^6.0.0