This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
melos.yaml
69 lines (59 loc) · 1.63 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
name: electric
packages:
- packages/*
- e2e/satellite_client
- todos_flutter
scripts:
lint:all:
run: melos run format && melos run analyze
description: Run all static analysis checks.
analyze:
# We are setting the concurrency to 1 because a higher concurrency can crash
# the analysis server on low performance machines (like GitHub Actions).
run: |
melos exec -c 1 -- \
dart analyze . --fatal-infos
description: |
Run `dart analyze` in all packages.
- Note: you can also rely on your IDEs Dart Analysis / Issues window.
format:
run: |
dart format --set-exit-if-changed .
test:all:
run: |
melos run test --no-select
description: |
Run all tests available.
test:
run: |
melos exec -c 6 --fail-fast -- \
"dart test"
description: Run `dart test` for a specific package.
packageFilters:
dirExists:
- test
generate_proto:
run: |
melos exec -- \
"protoc --dart_out=lib/src proto/satellite.proto && dart format lib/src/proto"
packageFilters:
scope: 'electricsql'
# Doesn't run the postgres tests
test_electric_fast:
run: |
melos exec -- \
"dart test -x postgres"
packageFilters:
scope: 'electricsql'
deps_downgrade:
run: |
melos exec -c 1 -- \
dart pub downgrade
description: |
Run `dart pub downgrade` in all packages. This will downgrade all dependencies to the lowest possible version.
deps_upgrade:
run: |
melos exec -c 1 -- \
dart pub upgrade
description: |
Run `dart pub upgrade` in all packages.