Skip to content

Commit abcd6ee

Browse files
authored
chore: update melos to 6.0.0 (#38)
1 parent c978b0f commit abcd6ee

File tree

5 files changed

+48
-37
lines changed

5 files changed

+48
-37
lines changed

.github/workflows/analyze.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ jobs:
3939
flutter-version: "3.19.x"
4040
channel: "stable"
4141
cache: true
42-
- uses: bluefireteam/melos-action@720a109b686f61979b4f9f0d14f582ab1637647e
42+
- uses: bluefireteam/melos-action@6085791af7036f6366c9a4b9d55105c0ef9c6388
4343
with:
44-
melos-version: "3.0.1"
44+
melos-version: "6.0.0"
4545
- name: "Run Flutter Analyze"
4646
run: melos run flutter-analyze
4747

@@ -84,9 +84,9 @@ jobs:
8484
flutter-version: "3.19.x"
8585
channel: "stable"
8686
cache: true
87-
- uses: bluefireteam/melos-action@720a109b686f61979b4f9f0d14f582ab1637647e
87+
- uses: bluefireteam/melos-action@6085791af7036f6366c9a4b9d55105c0ef9c6388
8888
with:
89-
melos-version: "3.0.1"
89+
melos-version: "6.0.0"
9090
- name: "Formatter version"
9191
run: |
9292
swiftformat --version

.github/workflows/build.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ jobs:
4545
flutter-version: "3.19.x"
4646
channel: "stable"
4747
cache: true
48-
- uses: bluefireteam/melos-action@720a109b686f61979b4f9f0d14f582ab1637647e
48+
- uses: bluefireteam/melos-action@6085791af7036f6366c9a4b9d55105c0ef9c6388
4949
with:
50-
melos-version: "3.0.1"
50+
melos-version: "6.0.0"
5151
- name: "Run flutter test"
5252
run: melos run test:dart
5353

@@ -72,9 +72,9 @@ jobs:
7272
flutter-version: "3.19.x"
7373
channel: "stable"
7474
cache: true
75-
- uses: bluefireteam/melos-action@720a109b686f61979b4f9f0d14f582ab1637647e
75+
- uses: bluefireteam/melos-action@6085791af7036f6366c9a4b9d55105c0ef9c6388
7676
with:
77-
melos-version: "3.0.1"
77+
melos-version: "6.0.0"
7878
- name: "Run Android native unit tests"
7979
run: melos run test:android
8080

@@ -103,9 +103,9 @@ jobs:
103103
flutter-version: "3.19.x"
104104
channel: "stable"
105105
cache: true
106-
- uses: bluefireteam/melos-action@720a109b686f61979b4f9f0d14f582ab1637647e
106+
- uses: bluefireteam/melos-action@6085791af7036f6366c9a4b9d55105c0ef9c6388
107107
with:
108-
melos-version: "3.0.1"
108+
melos-version: "6.0.0"
109109
- name: Generate necessary files with flutter build
110110
working-directory: ${{ matrix.working_directory }}
111111
run: flutter build ios --config-only
@@ -137,9 +137,9 @@ jobs:
137137
flutter-version: "3.19.x"
138138
channel: "stable"
139139
cache: true
140-
- uses: bluefireteam/melos-action@720a109b686f61979b4f9f0d14f582ab1637647e
140+
- uses: bluefireteam/melos-action@6085791af7036f6366c9a4b9d55105c0ef9c6388
141141
with:
142-
melos-version: "3.0.1"
142+
melos-version: "6.0.0"
143143
- name: "Run build for Android"
144144
run: melos run flutter-build-android
145145

@@ -163,9 +163,9 @@ jobs:
163163
channel: "stable"
164164
cache: true
165165
architecture: x64
166-
- uses: bluefireteam/melos-action@720a109b686f61979b4f9f0d14f582ab1637647e
166+
- uses: bluefireteam/melos-action@6085791af7036f6366c9a4b9d55105c0ef9c6388
167167
with:
168-
melos-version: "3.0.1"
168+
melos-version: "6.0.0"
169169
- uses: actions/cache@v4
170170
with:
171171
path: "**/Pods"

.github/workflows/licence-check.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ jobs:
4747
channel: "stable"
4848
cache: true
4949
- name: Install Melos
50-
uses: bluefireteam/melos-action@720a109b686f61979b4f9f0d14f582ab1637647e
50+
uses: bluefireteam/melos-action@6085791af7036f6366c9a4b9d55105c0ef9c6388
5151
with:
5252
# Running `melos bootstrap` is not needed because we use Melos just
5353
# for the `check-license-header` script.
5454
run-bootstrap: false
55-
melos-version: "3.0.1"
55+
melos-version: "6.0.0"
5656
- name: Check license header
5757
run: melos run check-license-header

melos.yaml

Lines changed: 31 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
name: google_maps_driver
15+
name: google_maps_driver
1616
repository: https://github.com/googlemaps/flutter-driver-sdk
1717

1818
packages:
@@ -50,7 +50,9 @@ scripts:
5050

5151
format:
5252
run: |
53-
melos run format:dart && melos run format:ios && melos run format:android
53+
melos run format:dart && \
54+
melos run format:ios && \
55+
melos run format:android
5456
description: |
5557
Formats the code of all packages (Dart, iOS, Android).
5658
@@ -62,14 +64,15 @@ scripts:
6264
6365
format:ios:
6466
run: |
65-
swiftformat .
67+
swiftformat --quiet .
6668
description: |
6769
Formats the code of iOS package with swiftformat.
6870
- Requires `swiftformat` (can be installed via Brew on macOS).
6971
7072
format:android:
7173
run: |
72-
if [ ! -f android/gradlew ]; then flutter build apk --config-only; fi &&
74+
if [ -d "example" ]; then cd example; fi && \
75+
if [ ! -f android/gradlew ]; then flutter build apk --config-only; fi &&
7376
cd android && ./gradlew ktfmtFormat
7477
exec:
7578
concurrency: 1
@@ -79,7 +82,7 @@ scripts:
7982
packageFilters:
8083
dirExists:
8184
- android
82-
scope: '*example*'
85+
scope: "*example*"
8386

8487
test:dart:
8588
run: flutter pub get && flutter test
@@ -88,11 +91,12 @@ scripts:
8891
failFast: true
8992
description: Flutter test
9093
packageFilters:
91-
fileExists: 'pigeons/messages.dart'
94+
fileExists: "pigeons/messages.dart"
9295

9396
test:android:
9497
run: |
95-
if [ ! -f android/gradlew ]; then flutter build apk --config-only; fi \
98+
if [ -d "example" ]; then cd example; fi && \
99+
if [ ! -f android/gradlew ]; then flutter build apk --config-only; fi \
96100
&& cd android && ./gradlew test
97101
exec:
98102
concurrency: 1
@@ -101,56 +105,63 @@ scripts:
101105
packageFilters:
102106
dirExists:
103107
- android
104-
scope: '*example*'
108+
scope: "*example*"
105109

106110
test:ios:
107-
run: ../tools/test-ios.sh
111+
run: |
112+
if [ -d "example" ]; then cd example; fi && \
113+
../tools/test-ios.sh
108114
exec:
109115
concurrency: 1
110116
failFast: true
111117
description: iOS native unit tests
112118
packageFilters:
113119
dirExists:
114120
- ios
115-
scope: '*example*'
121+
scope: "*example*"
116122

117123
flutter-build-android:
118-
run: flutter pub get && flutter build apk && flutter build appbundle
124+
run: |
125+
if [ -d "example" ]; then cd example; fi && \
126+
flutter pub get && flutter build apk && flutter build appbundle
119127
exec:
120128
concurrency: 1
121129
failFast: true
122130
description: Build a specific example app for Android.
123131
packageFilters:
124132
dirExists:
125133
- android
126-
scope: '*example*'
134+
scope: "*example*"
127135

128136
flutter-build-ios:
129-
run: flutter pub get && flutter build ios --release --no-codesign
137+
run: |
138+
if [ -d "example" ]; then cd example; fi && \
139+
flutter pub get && flutter build ios --release --no-codesign
130140
exec:
131141
concurrency: 1
132142
failFast: true
133143
description: Build a specific example app for iOS.
134144
packageFilters:
135145
dirExists:
136146
- ios
137-
scope: '*example*'
147+
scope: "*example*"
138148

139149
generate:mocks:
140150
exec: |
141-
dart run build_runner build --delete-conflicting-outputs &&
142-
melos run format --no-select && melos run add-license-header
151+
dart run build_runner build --delete-conflicting-outputs && \
152+
melos run format && \
153+
melos run add-license-header
143154
description: Generate the pigeon messages for all the supported packages.
144155
packageFilters:
145-
fileExists: 'pigeons/messages.dart'
156+
fileExists: "pigeons/messages.dart"
146157

147158
generate:pigeon:
148159
exec: |
149-
dart run pigeon --input ./pigeons/messages.dart &&
150-
melos run format --no-select
160+
dart run pigeon --input ./pigeons/messages.dart && \
161+
melos run format
151162
description: Generate the pigeon messages for all the supported packages.
152163
packageFilters:
153-
fileExists: 'pigeons/messages.dart'
164+
fileExists: "pigeons/messages.dart"
154165

155166
add-license-header:
156167
# If you add here another --ignore flag, add it also to

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ dev_dependencies:
3131
flutter_lints: ^3.0.1
3232
flutter_test:
3333
sdk: flutter
34-
melos: ^3.0.1
34+
melos: ^6.0.0
3535
mockito: 5.4.4
3636
pigeon: 15.0.0
3737

0 commit comments

Comments
 (0)