Skip to content

ci: add test.ci script and test job#78

Merged
mrverdant13 merged 2 commits into
mainfrom
ci/add-test-ci-script-and-job
Mar 21, 2026
Merged

ci: add test.ci script and test job#78
mrverdant13 merged 2 commits into
mainfrom
ci/add-test-ci-script-and-job

Conversation

@mrverdant13
Copy link
Copy Markdown
Owner

@mrverdant13 mrverdant13 commented Mar 21, 2026

Adds Melos test, test.all, and test.ci scripts and extends the CI workflow to run tests sequentially after format/analyze.

Changes

melos.yaml

  • test — runs flutter test across all packages that have a test/ directory, with concurrency 1
  • test.all — convenience wrapper that runs test across all packages without prompting
  • test.ci — CI-targeted script that runs flutter test via melos exec and fails on any error

.github/workflows/ci.yaml

  • Dart job: adds a Test step running melos run test.ci after the existing Analyze step
  • TypeScript job: adds a Test step running npm run test in apps/widgets_preview after the existing Type check step

Related issues

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.
- 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.
@mrverdant13 mrverdant13 self-assigned this Mar 21, 2026
@mrverdant13 mrverdant13 merged commit a2dec74 into main Mar 21, 2026
2 checks passed
@mrverdant13 mrverdant13 deleted the ci/add-test-ci-script-and-job branch March 21, 2026 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: add test.ci script and test job

1 participant