Skip to content

Commit bc7bdc3

Browse files
ci: include the common package inside our CI architecture
Signed-off-by: Vincenzo Palazzo <[email protected]>
1 parent 19cfbe4 commit bc7bdc3

File tree

3 files changed

+42
-1
lines changed

3 files changed

+42
-1
lines changed

Makefile

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

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

3437
ci_fmt_flutter:
38+
# FIXME: use client_analyze
3539
$(CC) run client_analyze --no-select
3640

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

@@ -44,15 +51,20 @@ check_client: ci_fmt_client ci_check_client
4451

4552
check_flutter: ci_fmt_flutter ci_check_flutter
4653

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

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

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

55-
ci: dep check_client check_flutter
67+
ci: dep check_comm check_client check_flutter
5668

5769
clean:
5870
$(CC) clean

melos.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,22 @@ scripts:
1919
select-package:
2020
flutter: false
2121

22+
comm_analyze:
23+
run: melos exec -c 1 -- "dart format --set-exit-if-changed . && dart analyze . --fatal-infos"
24+
description: Run dart analyzer in a specific package.
25+
select-package:
26+
flutter: false
27+
28+
test:
29+
description: Run tests in a specific package.
30+
run: melos exec -- "dart pub get && dart pub run test"
31+
select-package:
32+
flutter: false
33+
dir-exists:
34+
- "test/"
35+
env:
36+
MELOS_TEST: true
37+
2238
flutter_test:
2339
description: Run tests in a specific package.
2440
run: melos exec --depends-on="graphql" -- "flutter test"
@@ -39,6 +55,16 @@ scripts:
3955
env:
4056
MELOS_TEST: true
4157

58+
comm_test:
59+
description: Run tests in a specific package.
60+
run: melos exec -- "dart pub get && dart pub run test"
61+
select-package:
62+
flutter: false
63+
dir-exists:
64+
- "test/"
65+
env:
66+
MELOS_TEST: true
67+
4268
flutter_test_coverage:
4369
description: Run tests in a specific package.
4470
run: melos exec --depends-on="graphql" -- "flutter test --coverage"

packages/graphql/pubspec.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ version: 5.1.3
44
repository: https://github.com/zino-app/graphql-flutter/tree/main/packages/graphql
55
issue_tracker: https://github.com/zino-hofmann/graphql-flutter/issues
66

7+
# just for dev work
8+
publish_to: 'none'
9+
710
dependencies:
811
meta: ^1.3.0
912
path: ^1.8.0

0 commit comments

Comments
 (0)