From 367d618af869ef5e63052de215a58bf232836520 Mon Sep 17 00:00:00 2001 From: mrverdant13 Date: Sat, 21 Mar 2026 01:25:29 -0500 Subject: [PATCH 1/2] ci(melos): add test, test.all, and test.ci scripts Adds three Melos scripts: - `test`: runs `flutter test` sequentially (concurrency 1) across all packages that have a `test/` directory. - `test.all`: convenience alias that runs `test` without the interactive package selector. - `test.ci`: CI-facing counterpart that runs `flutter test` via `melos exec` across all packages. --- melos.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/melos.yaml b/melos.yaml index c76f1fb..5fb5fb0 100644 --- a/melos.yaml +++ b/melos.yaml @@ -46,3 +46,21 @@ scripts: description: Analyze codebase and check for analysis errors run: > dart analyze --fatal-infos --fatal-warnings . + + test: + description: Run tests + run: > + flutter test + exec: + concurrency: 1 + packageFilters: + dirExists: + - test + test.all: + description: Run tests for all packages + run: > + melos run --no-select test + test.ci: + description: Run tests and fail on any test error + run: > + melos exec -- flutter test From 83e990c68e106aa2a768e6b322d7c346ee71210f Mon Sep 17 00:00:00 2001 From: mrverdant13 Date: Sat, 21 Mar 2026 01:25:33 -0500 Subject: [PATCH 2/2] ci: add test step to Dart and TypeScript CI jobs - Dart job: runs `melos run test.ci` after the analyze step. - TypeScript job: runs `npm run test` after the type-check step. Both steps are sequential and follow the existing format/analyze pattern. --- .github/workflows/ci.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3b3cf33..ccdd085 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -33,6 +33,9 @@ jobs: - name: Analyze run: melos run analyze.ci + - name: Test + run: melos run test.ci + typescript: name: TypeScript runs-on: ubuntu-latest @@ -53,3 +56,7 @@ jobs: - name: Type check working-directory: apps/widgets_preview run: npm run typecheck + + - name: Test + working-directory: apps/widgets_preview + run: npm run test