Skip to content

Commit 67b02e2

Browse files
authored
chore: Migrate to pub workspace (#250)
Should fix remaining CI errors with melos
1 parent b130f14 commit 67b02e2

File tree

22 files changed

+64
-54
lines changed

22 files changed

+64
-54
lines changed

.github/workflows/celest.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,18 @@ jobs:
2323
with:
2424
channel: stable
2525
cache: true
26-
- name: Setup Melos
27-
run: dart pub global activate melos
2826
- name: Setup Turso
2927
run: curl -sSfL https://get.tur.so/install.sh | bash
3028
env:
3129
TURSO_INSTALL_SKIP_SIGNUP: true
3230
- name: Get Packages
33-
run: melos bootstrap
31+
working-directory: packages/celest
32+
run: |
33+
dart pub get
34+
flutter pub get -C example
35+
dart pub get -C example/celest
36+
dart pub get -C example/celest/client
37+
dart pub get -C tools/analyzer_plugin
3438
- name: Analyze
3539
working-directory: packages/celest
3640
run: dart analyze --fatal-infos --fatal-warnings

.github/workflows/celest_ast.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ jobs:
2424
uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff # 2.18.0
2525
with:
2626
cache: true
27-
- name: Setup Melos
28-
run: dart pub global activate melos
2927
- name: Get Packages
30-
run: melos bootstrap
28+
working-directory: packages/celest_ast
29+
run: dart pub upgrade
3130
- name: Analyze
3231
working-directory: packages/celest_ast
3332
run: dart analyze --fatal-infos --fatal-warnings .

.github/workflows/celest_auth.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@ jobs:
2323
with:
2424
channel: stable
2525
cache: true
26-
- name: Setup Melos
27-
run: dart pub global activate melos
2826
- name: Get Packages
29-
run: melos bootstrap
27+
working-directory: packages/celest_auth
28+
run: |
29+
dart pub get
30+
flutter pub get -C example
31+
dart pub get -C example/celest
32+
dart pub get -C example/celest/client
3033
- name: Analyze
3134
working-directory: packages/celest_auth
3235
run: dart analyze --fatal-infos --fatal-warnings

.github/workflows/celest_cli.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ jobs:
4040
- name: Setup Libsecret
4141
if: runner.os == 'Linux'
4242
run: tool/setup-ci.sh
43-
- name: Setup Melos
44-
run: dart pub global activate melos
45-
- name: Get Packages
46-
run: melos bootstrap
4743
- name: Get Packages
4844
working-directory: apps/cli
4945
run: dart pub upgrade

.github/workflows/celest_cloud.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ jobs:
2424
uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff # 2.18.0
2525
with:
2626
cache: true
27-
- name: Setup Melos
28-
run: dart pub global activate melos
2927
- name: Get Packages
30-
run: melos bootstrap
28+
working-directory: packages/celest_cloud
29+
run: dart pub upgrade
3130
- name: Analyze
3231
working-directory: packages/celest_cloud
3332
run: dart analyze --fatal-infos --fatal-warnings .

.github/workflows/celest_cloud_auth.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@ jobs:
2222
uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff # 2.18.0
2323
with:
2424
cache: true
25-
- name: Setup Melos
26-
run: dart pub global activate melos
2725
- name: Get Packages
28-
run: melos bootstrap
26+
working-directory: services/celest_cloud_auth
27+
run: dart pub upgrade
2928
- name: Analyze
3029
working-directory: services/celest_cloud_auth
3130
run: dart analyze
@@ -42,10 +41,9 @@ jobs:
4241
uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff # 2.18.0
4342
with:
4443
cache: true
45-
- name: Setup Melos
46-
run: dart pub global activate melos
4744
- name: Get Packages
48-
run: melos bootstrap
45+
working-directory: services/celest_cloud_auth
46+
run: dart pub upgrade
4947
- name: Test
5048
working-directory: services/celest_cloud_auth
5149
run: dart test

.github/workflows/celest_core.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@ jobs:
2222
uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff # 2.18.0
2323
with:
2424
cache: true
25-
- name: Setup Melos
26-
run: dart pub global activate melos
2725
- name: Get Packages
28-
run: melos bootstrap
26+
working-directory: packages/celest_core
27+
run: dart pub upgrade
2928
- name: Analyze
3029
working-directory: packages/celest_core
3130
run: dart analyze
@@ -42,10 +41,9 @@ jobs:
4241
uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff # 2.18.0
4342
with:
4443
cache: true
45-
- name: Setup Melos
46-
run: dart pub global activate melos
4744
- name: Get Packages
48-
run: melos bootstrap
45+
working-directory: packages/celest_core
46+
run: dart pub upgrade
4947
- name: Test
5048
working-directory: packages/celest_core
5149
run: dart test

.github/workflows/examples.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Setup Melos
3030
run: dart pub global activate melos
3131
- name: Get Packages
32-
run: melos bootstrap
32+
run: melos exec -c 1 --dir-exists=celest -- flutter pub get
3333
- name: Analyze
3434
run: melos exec -c 1 --dir-exists=celest -- flutter analyze --fatal-infos --fatal-warnings
3535
- name: Format

CONTRIBUTING.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,6 @@ To get started contributing to Celest, clone the repository using the `git clone
1414
$ git clone https://github.com/celest-dev/celest.git
1515
```
1616

17-
The monorepo uses [melos](https://pub.dev/packages/melos) for managing dependency linking and versioning. Before starting, ensure you have melos installed globally:
18-
19-
```bash
20-
$ dart pub global activate melos
21-
```
22-
23-
Then run `melos bootstrap` to link all packages together:
24-
25-
```bash
26-
$ melos bootstrap
27-
```
28-
2917
### Submitting a Pull Request
3018

3119
Ensure that any changes made to a package have accompanying tests. To run tests for a package, navigate to the package directory and run the following command:

apps/cli/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ repository: https://github.com/celest-dev/celest/tree/main/apps/cli
66

77
environment:
88
sdk: ^3.7.0
9+
resolution: workspace
910

1011
dependencies:
1112
analyzer: ^7.3.0

0 commit comments

Comments
 (0)