From 097fe75667bd97753f25e83f1b595c1342f52e3f Mon Sep 17 00:00:00 2001 From: Lukas Klingsbo Date: Fri, 12 Apr 2024 16:24:20 +0200 Subject: [PATCH] chore: Bump Melos to ^5.3.0 (#12633) --- .github/workflows/all_plugins.yaml | 2 +- CONTRIBUTING.md | 4 ++-- melos.yaml | 6 +++--- pubspec.yaml | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/all_plugins.yaml b/.github/workflows/all_plugins.yaml index 213d89506464..939efdbf2c46 100644 --- a/.github/workflows/all_plugins.yaml +++ b/.github/workflows/all_plugins.yaml @@ -32,7 +32,7 @@ jobs: with: melos-version: '3.0.1' - name: 'Run Analyze' - run: melos run analyze + run: melos analyze-ci # Separated from "analyse" action as pubspec_override file is not being taken into account when running `flutter pub publish --dry-run` # This will fail on CI until this is fixed: https://github.com/invertase/melos/issues/467 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c3ba8e7b8583..adf32f645fe9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -198,10 +198,10 @@ commands can be run locally to highlight any issues before committing your code: ```bash # Run the analyze check -melos run analyze +melos analyze-ci # Format code -melos run format +melos format-ci ``` Assuming all is successful, commit and push your code: diff --git a/melos.yaml b/melos.yaml index 1a9fac5baa0a..d524a300fc4f 100644 --- a/melos.yaml +++ b/melos.yaml @@ -25,10 +25,10 @@ command: scripts: lint:all: - run: melos run analyze && melos run format + run: melos run analyze-ci && melos run format-ci description: Run all static analysis checks. - analyze: + analyze-ci: # We are setting the concurrency to 1 because a higher concurrency can crash # the analysis server on low performance machines (like GitHub Actions). run: | @@ -46,7 +46,7 @@ scripts: integration testing. - Requires Node.js and NPM installed. - format: + format-ci: run: | dart pub global run flutter_plugin_tools format && \ swiftformat . diff --git a/pubspec.yaml b/pubspec.yaml index 0678a5e6eb3b..dc32a7e0a52d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,4 +4,4 @@ environment: sdk: '>=2.18.0 <4.0.0' dev_dependencies: - melos: ^3.0.1 + melos: ^5.3.0