ci: add test.ci script and test job#78
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Melos
test,test.all, andtest.ciscripts and extends the CI workflow to run tests sequentially after format/analyze.Changes
melos.yamltest— runsflutter testacross all packages that have atest/directory, with concurrency 1test.all— convenience wrapper that runstestacross all packages without promptingtest.ci— CI-targeted script that runsflutter testviamelos execand fails on any error.github/workflows/ci.yamlTeststep runningmelos run test.ciafter the existingAnalyzestepTeststep runningnpm run testinapps/widgets_previewafter the existingType checkstepRelated issues