Compare commits
No commits in common. "90339d15a32fa1be77a1897c3c4aaf858743acd1" and "72173cdf18c33731a3c36f44e1f9b43fe2fa0535" have entirely different histories.
90339d15a3
...
72173cdf18
@ -20,7 +20,7 @@ name: default
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: quality-check
|
- name: quality-check
|
||||||
image: git.wyatt-studio.fr/wyatt-foss/flutter-melos:latest
|
image: git.wyatt-studio.fr/wyatt-foss/flutter-melos:2.9.0-1
|
||||||
commands:
|
commands:
|
||||||
- melos run quality-check
|
- melos run quality-check
|
||||||
- melos run publish:validate
|
- melos run publish:validate
|
||||||
|
92
melos.yaml
92
melos.yaml
@ -1,86 +1,65 @@
|
|||||||
name: Wyatt-Packages
|
name: Wyatt-Packages
|
||||||
#repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages Gitea not yet supported
|
#repository: https://git.wyatt-studio.fr/Wyatt-FOSS/wyatt-packages Gitea not yet supported
|
||||||
|
|
||||||
sdkPath: auto
|
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
- packages/**
|
- packages/**
|
||||||
|
|
||||||
ide:
|
|
||||||
intellij:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
command:
|
command:
|
||||||
|
bootstrap:
|
||||||
|
usePubspecOverrides: true
|
||||||
|
|
||||||
version:
|
version:
|
||||||
updateGitTagRefs: true
|
updateGitTagRefs: true
|
||||||
linkToCommits: false # Gitea not yet supported
|
linkToCommits: false # Gitea not yet supported
|
||||||
workspaceChangelog: true
|
workspaceChangelog: true
|
||||||
includeCommitId: true
|
|
||||||
branch: master
|
branch: master
|
||||||
message: |
|
|
||||||
chore(release): publish packages 🎉
|
|
||||||
|
|
||||||
{new_package_versions}
|
|
||||||
|
|
||||||
clean:
|
|
||||||
hooks:
|
|
||||||
post: melos exec --flutter --concurrency=3 -- "flutter clean"
|
|
||||||
|
|
||||||
scripts:
|
scripts:
|
||||||
analyze:
|
|
||||||
run: |
|
|
||||||
melos exec --flutter --concurrency=1 -- flutter analyze --fatal-infos
|
|
||||||
description: Run `flutter analyze` for all flutter packages.
|
|
||||||
|
|
||||||
fix:apply:
|
|
||||||
run: melos exec --concurrency=1 -- dart fix . --apply
|
|
||||||
description: Run and apply `dart fix` for all packages.
|
|
||||||
|
|
||||||
fix:check:
|
|
||||||
run: melos exec --concurrency=1 -- dart fix . --set-exit-if-changed
|
|
||||||
description: Run `dart fix` checks for all packages.
|
|
||||||
|
|
||||||
format:
|
|
||||||
run: melos exec --concurrency=1 -- dart format .
|
|
||||||
description: Run `dart format` for all packages.
|
|
||||||
|
|
||||||
lint:all:
|
lint:all:
|
||||||
run: melos run analyze && melos run format
|
run: melos run analyze && melos run format
|
||||||
description: Run all static analysis checks.
|
description: Run all static analysis checks.
|
||||||
|
|
||||||
|
analyze:
|
||||||
|
run: |
|
||||||
|
melos exec -c 1 -- flutter analyze --fatal-infos
|
||||||
|
description: Run `flutter analyze` for all packages.
|
||||||
|
|
||||||
|
fix:
|
||||||
|
run: melos exec dart fix . --apply
|
||||||
|
description: Run `dart fix` for all packages.
|
||||||
|
|
||||||
|
format:
|
||||||
|
run: melos exec dart format .
|
||||||
|
description: Run `dart format` for all packages.
|
||||||
|
|
||||||
|
format-check:
|
||||||
|
run: melos exec dart fix . --set-exit-if-changed
|
||||||
|
description: Run `dart fix` checks for all packages.
|
||||||
|
|
||||||
clean:deep:
|
clean:deep:
|
||||||
run: git clean -x -d -f -q
|
run: git clean -x -d -f -q
|
||||||
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 --concurrency=1 -- 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.
|
||||||
packageFilters:
|
select-package:
|
||||||
dirExists:
|
dir-exists:
|
||||||
- test
|
- test
|
||||||
ignore:
|
ignore:
|
||||||
- "*example*"
|
- '*example*'
|
||||||
|
|
||||||
test:all:
|
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:
|
gen-coverage: melos exec -- sh "\$MELOS_ROOT_PATH/combine_coverage.sh" && genhtml coverage/lcov.info -o coverage/html
|
||||||
run: |
|
|
||||||
melos exec --concurrency=1 -- sh "\$MELOS_ROOT_PATH/combine_coverage.sh" && \
|
|
||||||
genhtml coverage/lcov.info -o coverage/html
|
|
||||||
description: |
|
|
||||||
Generate coverage report for all packages.
|
|
||||||
Requires `lcov` and `genhtml`.
|
|
||||||
|
|
||||||
gen:class_models:
|
gen-class-models:
|
||||||
run: melos exec --concurrency=1 -- dart pub global run dcdg -o models/class-models.puml
|
run: melos exec -- dart pub global run dcdg -o models/class-models.puml
|
||||||
description: |
|
select-package:
|
||||||
Generate class models for all packages.
|
|
||||||
Requires `dcdg`. (https://pub.dev/packages/dcdg)
|
|
||||||
packageFilters:
|
|
||||||
ignore:
|
ignore:
|
||||||
- "*example*"
|
- '*example*'
|
||||||
|
|
||||||
quality-check:
|
quality-check:
|
||||||
run: |
|
run: |
|
||||||
@ -91,16 +70,13 @@ scripts:
|
|||||||
|
|
||||||
publish:validate:
|
publish:validate:
|
||||||
run: melos publish --diff="origin/$DRONE_COMMIT_BRANCH...HEAD" --yes
|
run: melos publish --diff="origin/$DRONE_COMMIT_BRANCH...HEAD" --yes
|
||||||
description: |
|
|
||||||
Validate that all packages are ready to be published.
|
|
||||||
Requires DRONE_COMMIT_BRANCH to be set.
|
|
||||||
Note: This will not actually publish anything.
|
|
||||||
|
|
||||||
publish:validate-local:
|
publish:validate-local:
|
||||||
run: melos publish --yes
|
run: melos publish --yes
|
||||||
description: |
|
|
||||||
Validate that all packages are ready to be published.
|
|
||||||
Note: This will not actually publish anything.
|
|
||||||
|
|
||||||
# publish:
|
# publish:
|
||||||
# run: melos publish --diff="origin/$DRONE_COMMIT_BRANCH...HEAD" --no-dry-run --yes
|
# run: melos publish --diff="origin/$DRONE_COMMIT_BRANCH...HEAD" --no-dry-run --yes
|
||||||
|
|
||||||
|
# Additional cleanup lifecycle script, executed when `melos clean` is run.
|
||||||
|
postclean: >
|
||||||
|
melos exec -c 6 -- "flutter clean"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user