Skip to content

Commit 742b761

Browse files
fix: Make sure the package can be built on Flutter web (#990)
* Add test to build flutter web * Adjust the path of the ci pipeline * update melos config to include supabase_flutter example and use the local packages * chore: remove packgaes from bootstrap seection * ci: run bootstrap in non flutter packages * ci: run supabase_flutter ci on isolate package changes --------- Co-authored-by: Vinzent <[email protected]>
1 parent 821cad9 commit 742b761

File tree

10 files changed

+16
-8
lines changed

10 files changed

+16
-8
lines changed

.github/workflows/functions_client.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
run: |
4545
cd ../../
4646
dart pub global activate melos
47-
melos bootstrap --ignore="supabase_flutter"
47+
melos bootstrap --no-flutter
4848
4949
- name: dartfmt
5050
if: ${{ matrix.sdk == 'stable'}}

.github/workflows/gotrue.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
run: |
4242
cd ../../
4343
dart pub global activate melos
44-
melos bootstrap --ignore="supabase_flutter"
44+
melos bootstrap --no-flutter
4545
4646
- name: dartfmt
4747
if: ${{ matrix.sdk == 'stable'}}

.github/workflows/postgrest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
run: |
4444
cd ../../
4545
dart pub global activate melos
46-
melos bootstrap --ignore="supabase_flutter"
46+
melos bootstrap --no-flutter
4747
4848
- name: dartfmt
4949
if: ${{ matrix.sdk == 'stable'}}

.github/workflows/realtime_client.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
run: |
4242
cd ../../
4343
dart pub global activate melos
44-
melos bootstrap --ignore="supabase_flutter"
44+
melos bootstrap --no-flutter
4545
4646
- name: dartfmt
4747
if: ${{ matrix.sdk == 'stable'}}

.github/workflows/storage_client.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
run: |
4141
cd ../../
4242
dart pub global activate melos
43-
melos bootstrap --ignore="supabase_flutter"
43+
melos bootstrap --no-flutter
4444
4545
- name: dartfmt
4646
if: ${{ matrix.sdk == 'stable'}}

.github/workflows/supabase.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
run: |
5252
cd ../../
5353
dart pub global activate melos
54-
melos bootstrap --ignore="supabase_flutter"
54+
melos bootstrap --no-flutter
5555
5656
- name: dartfmt
5757
if: ${{ matrix.sdk == 'stable'}}

.github/workflows/supabase_flutter.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
- 'packages/realtime_client/**'
1414
- 'packages/storage_client/**'
1515
- 'packages/supabase/**'
16+
- 'packages/yet_another_json_isolate/**'
1617

1718
pull_request:
1819
paths:
@@ -24,6 +25,7 @@ on:
2425
- 'packages/realtime_client/**'
2526
- 'packages/storage_client/**'
2627
- 'packages/supabase/**'
28+
- 'packages/yet_another_json_isolate/**'
2729

2830
jobs:
2931
test:
@@ -76,3 +78,8 @@ jobs:
7678
run: |
7779
flutter pub downgrade app_links
7880
flutter test --concurrency=1
81+
82+
- name: Verify if Flutter web build is successful
83+
run: |
84+
cd example
85+
flutter build web

.github/workflows/yet_another_json_isolate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
run: |
4242
cd ../../
4343
dart pub global activate melos
44-
melos bootstrap --ignore="supabase_flutter"
44+
melos bootstrap --no-flutter
4545
4646
- name: dartfmt
4747
if: ${{ matrix.sdk == 'stable'}}

melos.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ repository: https://github.com/supabase/supabase-flutter
33

44
packages:
55
- packages/*
6+
- packages/supabase_flutter/example
67

78
command:
89
version:

packages/yet_another_json_isolate/lib/src/_isolates_web.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class YAJsonIsolate {
1010
return jsonDecode(json);
1111
}
1212

13-
Future<String> encode(Map json) async {
13+
Future<String> encode(Object? json) async {
1414
await null;
1515
return jsonEncode(json);
1616
}

0 commit comments

Comments
 (0)