From bf269c05d08edc20ea97554fbc9ed549f913499d Mon Sep 17 00:00:00 2001 From: Lukas Klingsbo Date: Mon, 6 Jul 2026 13:57:42 +0200 Subject: [PATCH] chore: Upgrade to Melos 8.1.0 - Bump melos to ^8.1.0 - Drop custom analyze script in favor of the built-in melos analyze - Drop custom test wrapper; CI runs test:select to keep the formatter output - Update lint:all to call melos analyze (steps do not resolve the new built-in by bare name) - Update CONTRIBUTING to use melos analyze / melos test --- .github/workflows/cicd.yml | 2 +- CONTRIBUTING.md | 4 ++-- pubspec.yaml | 12 ++---------- 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index bb23f013794..b2a1b0e4dfc 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -80,5 +80,5 @@ jobs: cache: true - uses: bluefireteam/melos-action@v3 - name: Run tests - run: melos test + run: melos run test:select --no-select # END TESTING STAGE diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4edbcf6403b..cca5dd0cfab 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -51,8 +51,8 @@ For a contribution to be accepted: - Follow the [Style Guide] when writing the code; - Format the code using `dart format .`; -- Lint the code with `melos run analyze`; -- Check that all tests pass: `melos run test`; +- Lint the code with `melos analyze`; +- Check that all tests pass: `melos test`; - Documentation should always be updated or added (if applicable); - Examples should always be updated or added (if applicable); - Tests should always be updated or added (if applicable) -- check the [Test writing guide] for diff --git a/pubspec.yaml b/pubspec.yaml index 950310602e7..43f088ae63d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -76,7 +76,7 @@ environment: sdk: ">=3.11.0 <4.0.0" dev_dependencies: - melos: ^7.4.0 + melos: ^8.1.0 melos: command: @@ -107,14 +107,10 @@ melos: scripts: lint:all: steps: - - analyze + - melos analyze - format description: Run all static analysis checks. - analyze: - run: melos exec dart analyze . - description: Run `dart analyze` for all packages. - format-check: run: melos exec dart format . --set-exit-if-changed description: Run `dart format` checks for all packages. @@ -161,10 +157,6 @@ melos: dirExists: test description: Run `flutter test` for selected packages. - test: - run: melos run test:select --no-select - description: Run all Flutter tests in this project. - test:seeded: run: melos exec -c 1 -- flutter test --dart-define=RANDOM_SEED=$RANDOM_SEED packageFilters: