packages/chore/ci #86

Merged
malo merged 5 commits from packages/chore/ci into master 2022-12-12 02:30:50 +00:00
Showing only changes of commit a19d4bc5ce - Show all commits

View File

@ -21,8 +21,7 @@ scripts:
analyze: analyze:
run: | run: |
melos exec -c 10 -- \ melos exec -c 1 -- flutter analyze --fatal-infos
flutter analyze --fatal-infos
description: Run `flutter analyze` for all packages. description: Run `flutter analyze` for all packages.
format: format:
@ -38,18 +37,29 @@ scripts:
description: Clean things very deeply with `git clean`. description: Clean things very deeply with `git clean`.
test:selective_unit_test: test:selective_unit_test:
run: melos exec --dir-exists="test" -- flutter test --no-pub --coverage run: melos exec -- flutter test --no-pub --coverage
description: Run Flutter tests for a specific package in this project. description: Run Flutter tests for a specific package in this project.
select-package: select-package:
flutter: true flutter: true
dir-exists:
- test
ignore:
- '*example*'
test: test:all:
run: melos run test:selective_unit_test --no-select run: melos run test:selective_unit_test --no-select
description: Run all Flutter tests in this project. description: Run all Flutter tests in this project.
gen-coverage: melos exec -- sh "\$MELOS_ROOT_PATH/combine_coverage.sh" && genhtml coverage/lcov.info -o coverage/html gen-coverage: melos exec -- sh "\$MELOS_ROOT_PATH/combine_coverage.sh" && genhtml coverage/lcov.info -o coverage/html
gen-class-models: melos exec --scope="*wyatt_*" -- dart pub global run dcdg -o models/class-models.puml gen-class-models: melos exec --scope="*wyatt_*" -- dart pub global run dcdg -o models/class-models.puml
qualitycheck:
run: |
melos clean && \
melos bootstrap && \
melos run test:all
description: Run all targets generally expected in CI for a full local quality check.
# Additional cleanup lifecycle script, executed when `melos clean` is run. # Additional cleanup lifecycle script, executed when `melos clean` is run.
postclean: > postclean: >