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: