From e8a7e9a357eba2f1e489f3fb8bbb3123b72fcaea Mon Sep 17 00:00:00 2001 From: Nikolas Rimikis Date: Fri, 22 Dec 2023 12:14:54 +0100 Subject: [PATCH] fix(ci): run dart tests with dart instead of flutter Signed-off-by: Nikolas Rimikis --- .github/workflows/dart.yml | 3 ++- melos.yaml | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 5050a98809e..24a62afed25 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -43,4 +43,5 @@ jobs: if [ -z "$packages" ]; then exit 0; fi packages_glob="$(printf ",%s" "${packages[@]}")" packages_glob="${packages_glob:1}" - melos exec --scope="$packages_glob" --concurrency=1 --fail-fast --dir-exists=test -- "flutter test --concurrency=$(nproc --all)" + melos exec --scope="$packages_glob" --flutter --concurrency=1 --fail-fast --dir-exists=test -- "flutter test --concurrency=$(nproc --all)" + melos exec --scope="$packages_glob" --no-flutter --concurrency=1 --fail-fast --dir-exists=test -- "dart test --concurrency=$(nproc --all)" diff --git a/melos.yaml b/melos.yaml index c0a4e2c093a..f4dbe558420 100644 --- a/melos.yaml +++ b/melos.yaml @@ -27,6 +27,8 @@ scripts: format: dart format --fix --line-length 120 . format:check: dart format --output=none --set-exit-if-changed --line-length 120 . analyze: dart analyze --fatal-infos . - test: melos exec --concurrency=1 --fail-fast --dir-exists=test -- "flutter test --concurrency=$(nproc --all)" + test: > + melos exec --no-flutter --concurrency=1 --fail-fast --dir-exists=test -- "dart test --concurrency=$(nproc --all)" && + melos exec --flutter --concurrency=1 --fail-fast --dir-exists=test -- "flutter test --concurrency=$(nproc --all)" generate:neon:build_runner: melos exec --scope="neon*" --file-exists="build.yaml" -- dart run build_runner build --delete-conflicting-outputs && melos run format generate:neon:l10n: melos exec --flutter --dir-exists="lib/l10n" flutter gen-l10n && melos run format