From ac71ced95d5d5edb44f6558a544f34661b4a213e Mon Sep 17 00:00:00 2001 From: Alex Li Date: Thu, 2 Nov 2023 13:06:42 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20++?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/tests.yml | 1 + melos.yaml | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index dd3f1bbc1..973424aa9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -37,4 +37,5 @@ jobs: - uses: bluefireteam/melos-action@v2 with: run-bootstrap: false + - uses: dart pub get - run: melos run github-ci diff --git a/melos.yaml b/melos.yaml index c6702cf76..7004f340f 100644 --- a/melos.yaml +++ b/melos.yaml @@ -17,26 +17,26 @@ command: scripts: github-ci: - run: melos format && melos analyze && melos dryRun && melos test + run: dart run $MELOS_ROOT_PATH/scripts/sdk_satisfaction.dart && melos format && melos analyze && melos dryRun && melos test || exit 0 format: - exec: dart run $MELOS_ROOT_PATH/scripts/sdk_satisfaction.dart && dart format --set-exit-if-changed . || exit 0 + exec: dart format --set-exit-if-changed . analyze: run: melos run analyze:dart && melos run analyze:flutter analyze:dart: - run: dart run $MELOS_ROOT_PATH/scripts/sdk_satisfaction.dart && dart analyze --fatal-infos || exit 0 + exec: dart analyze --fatal-infos packageFilters: flutter: false analyze:flutter: - exec: dart run $MELOS_ROOT_PATH/scripts/sdk_satisfaction.dart && flutter analyze --fatal-infos || exit 0 + exec: flutter analyze --fatal-infos packageFilters: flutter: true dryRun: - exec: dart run $MELOS_ROOT_PATH/scripts/sdk_satisfaction.dart && dart pub publish --dry-run || exit 0 + exec: dart pub publish --dry-run packageFilters: private: false @@ -46,13 +46,13 @@ scripts: melos run test:flutter --no-select test:dart: - exec: dart run $MELOS_ROOT_PATH/scripts/sdk_satisfaction.dart && dart test --chain-stack-traces --platform=vm,chrome,firefox || exit 0 + exec: dart test --chain-stack-traces --platform=vm,chrome,firefox packageFilters: flutter: false dirExists: 'test' test:flutter: - exec: dart run $MELOS_ROOT_PATH/scripts/sdk_satisfaction.dart && flutter test || exit 0 + exec: flutter test packageFilters: flutter: true dirExists: 'test'