Skip to content

Commit 00dfdb4

Browse files
ci: include the common package inside our CI architecture
Signed-off-by: Vincenzo Palazzo <[email protected]>
1 parent 16e8ca4 commit 00dfdb4

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

Makefile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,19 @@ ci_check_flutter:
2929
ci_check_client:
3030
$(CC) run client_test --no-select
3131

32+
ci_check_comm:
33+
$(CC) run comm_test --no-select
34+
3235
ci_fmt_client:
3336
$(CC) run client_analyze --no-select
3437

3538
ci_fmt_flutter:
39+
# FIXME: use client_analyze
3640
$(CC) run client_analyze --no-select
3741

42+
ci_fmt_comm:
43+
$(CC) run comm_analyze --no-select
44+
3845
ci_coverage_client:
3946
$(CC) run client_test_coverage --no-select
4047

@@ -45,15 +52,20 @@ check_client: ci_fmt_client ci_check_client
4552

4653
check_flutter: ci_fmt_flutter ci_check_flutter
4754

55+
check_comm: ci_fmt_comm ci_check_comm
56+
4857
changelog_client:
4958
cd packages/graphql && $(CC_CHANGELOG)
5059

5160
changelog_flutter:
5261
cd packages/graphql_flutter && $(CC_CHANGELOG)
5362

63+
changelog_comm:
64+
cd packages/graphql_common && $(CC_CHANGELOG)
65+
5466
changelog: changelog_client changelog_flutter
5567

56-
ci: dep check_client check_flutter
68+
ci: dep check_comm check_client check_flutter
5769

5870
clean:
5971
$(CC) clean

melos.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ scripts:
2525
select-package:
2626
flutter: false
2727

28+
comm_analyze:
29+
run: melos exec -c 1 -- "dart format --set-exit-if-changed . && dart analyze . --fatal-infos"
30+
description: Run dart analyzer in a specific package.
31+
select-package:
32+
flutter: false
33+
2834
test:
2935
description: Run tests in a specific package.
3036
run: melos exec -- "dart pub get && dart pub run test"
@@ -55,6 +61,16 @@ scripts:
5561
env:
5662
MELOS_TEST: true
5763

64+
comm_test:
65+
description: Run tests in a specific package.
66+
run: melos exec -- "dart pub get && dart pub run test"
67+
select-package:
68+
flutter: false
69+
dir-exists:
70+
- "test/"
71+
env:
72+
MELOS_TEST: true
73+
5874
flutter_test_coverage:
5975
description: Run tests in a specific package.
6076
run: melos exec --depends-on="graphql" -- "flutter test --coverage"

0 commit comments

Comments
 (0)