-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
melos.yaml
76 lines (68 loc) · 2.94 KB
/
melos.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: riverbloc_samples
packages:
- "**"
scripts:
c:
description: Drop the `build/` and `.dart_tool/` folders from a selected package.
run: melos exec -c 1 -- flutter clean
select-package:
C:
description: Drop the `build/` and `.dart_tool/` folders from all packages.
run: melos run c --no-select
d:
description: Install dependencies for a selected package.
run: melos exec -c 1 -- flutter pub get
select-package:
D:
description: Install dependencies for all packages.
run: melos run d --no-select
D:ci:
description: Install dependencies for all packages.
run: melos exec -- flutter pub get
f:
description: Format codebase for a selected package.
run: melos exec -c 1 -- flutter format lib test
select-package:
F:
description: Format codebase for all packages.
run: melos run f --no-select
F:ci:
description: Format codebase for all packages and stop if a change is identified.
run: melos exec --fail-fast -- flutter format --set-exit-if-changed lib test
a:
description: Analyze codebase for a selected package and consider infos and warnings as errors.
run: melos exec -c 1 -- flutter analyze --fatal-infos --fatal-warnings
select-package:
A:
description: Analyze codebase for all packages and consider infos and warnings as errors.
run: melos run a --no-select
A:ci:
description: Analyze codebase for all packages considering infos and warnings as errors.
run: melos exec --fail-fast -- flutter analyze --no-pub --fatal-infos --fatal-warnings
t:
description: Run tests for a selected package in random order.
run: melos exec -c 1 -- flutter test -x ci-only --coverage -r expanded --test-randomize-ordering-seed random
select-package:
dir-exists: test
T:
description: Run tests for all packages in random order.
run: melos run t --no-select
T:ci:
description: Run tests for all packages in random order.
run: melos exec --fail-fast --dir-exists=test -- flutter test -x ci-only --no-pub --coverage -r expanded --test-randomize-ordering-seed random
cov:open:
description: Generate and open test coverage html view.
run: melos run T:ci && melos run M
&& genhtml ./coverage/merged.lcov.info -o coverage
&& open coverage/index.html
M:
description: Merge all packages coverage data ignoring data related to generated files.
run: >
dart run cli/bin/rm.dart MELOS_ROOT_PATH/coverage/merged.lcov.info &&
melos exec --file-exists=coverage/lcov.info -- dart run MELOS_ROOT_PATH/cli/bin/cov.dart merge --origin ./coverage/lcov.info --destination MELOS_ROOT_PATH/coverage/merged.lcov.info --ignore-patterns \.g\.dart,\.freezed\.dart
WF:
description: Run full local workflow
run: melos run D && melos run F && melos run A && melos run T && melos run M
WF:ci:
description: Run full CI workflow
run: melos run D:ci && melos run F:ci && melos run A:ci && melos run T:ci #&& melos run M