From 3bc61345e16860b85b7eca44cde7d30d678bf98b Mon Sep 17 00:00:00 2001 From: dshukertjr Date: Thu, 16 Jan 2025 20:45:24 +0900 Subject: [PATCH 01/17] chore: Update CI to generate coverage report. --- .github/workflows/functions_client.yml | 5 ++++- .github/workflows/gotrue.yml | 5 ++++- .github/workflows/postgrest.yml | 5 ++++- .github/workflows/realtime_client.yml | 5 ++++- .github/workflows/storage_client.yml | 5 ++++- .github/workflows/supabase.yml | 8 +++++++- .github/workflows/supabase_flutter.yml | 5 ++++- .github/workflows/yet_another_json_isolate.yml | 5 ++++- melos.yaml | 13 +++++++++++++ 9 files changed, 48 insertions(+), 8 deletions(-) diff --git a/.github/workflows/functions_client.yml b/.github/workflows/functions_client.yml index 7db4a9f7..ca999942 100644 --- a/.github/workflows/functions_client.yml +++ b/.github/workflows/functions_client.yml @@ -54,4 +54,7 @@ jobs: run: dart analyze --fatal-warnings --fatal-infos . - name: Run tests - run: dart test + run: dart test --coverage=./coverage + + - name: Update coverage + run: melos run update-coverage diff --git a/.github/workflows/gotrue.yml b/.github/workflows/gotrue.yml index d7df105f..29dbd319 100644 --- a/.github/workflows/gotrue.yml +++ b/.github/workflows/gotrue.yml @@ -62,4 +62,7 @@ jobs: time: '5s' - name: Run tests - run: dart test --concurrency=1 + run: dart test --concurrency=1 --coverage=./coverage + + - name: Update coverage + run: melos run update-coverage diff --git a/.github/workflows/postgrest.yml b/.github/workflows/postgrest.yml index 49e6f637..0b8e19b2 100644 --- a/.github/workflows/postgrest.yml +++ b/.github/workflows/postgrest.yml @@ -64,4 +64,7 @@ jobs: time: '5s' - name: Run tests - run: dart test --concurrency=1 + run: dart test --concurrency=1 --coverage=./coverage + + - name: Update coverage + run: melos run update-coverage diff --git a/.github/workflows/realtime_client.yml b/.github/workflows/realtime_client.yml index 48216378..f2bdbc43 100644 --- a/.github/workflows/realtime_client.yml +++ b/.github/workflows/realtime_client.yml @@ -51,4 +51,7 @@ jobs: run: dart analyze --fatal-warnings --fatal-infos . - name: Run tests - run: dart test + run: dart test --coverage=./coverage + + - name: Update coverage + run: melos run update-coverage diff --git a/.github/workflows/storage_client.yml b/.github/workflows/storage_client.yml index 33e0b989..8b1cb160 100644 --- a/.github/workflows/storage_client.yml +++ b/.github/workflows/storage_client.yml @@ -61,4 +61,7 @@ jobs: time: '5s' - name: Run tests - run: dart test + run: dart test --coverage=./coverage + + - name: Update coverage + run: melos run update-coverage diff --git a/.github/workflows/supabase.yml b/.github/workflows/supabase.yml index 80b8b59d..7bb753e9 100644 --- a/.github/workflows/supabase.yml +++ b/.github/workflows/supabase.yml @@ -61,4 +61,10 @@ jobs: run: dart analyze --fatal-warnings --fatal-infos . - name: Run tests - run: dart test --concurrency=1 + run: dart test --concurrency=1 --coverage=./coverage + + - name: Update coverage + run: | + dart pub global activate combine_coverage + melos run update-coverage + dart pub global run combine_coverage --repo-path="../../" diff --git a/.github/workflows/supabase_flutter.yml b/.github/workflows/supabase_flutter.yml index 1ce67e14..64e7f531 100644 --- a/.github/workflows/supabase_flutter.yml +++ b/.github/workflows/supabase_flutter.yml @@ -68,7 +68,7 @@ jobs: run: flutter analyze --fatal-warnings --fatal-infos . - name: Run tests - run: flutter test --concurrency=1 + run: flutter test --concurrency=1 --coverage - name: Run tests with downgraded app_links run: | @@ -79,3 +79,6 @@ jobs: run: | cd example flutter build web + + - name: Update coverage + run: melos run update-coverage diff --git a/.github/workflows/yet_another_json_isolate.yml b/.github/workflows/yet_another_json_isolate.yml index 83408586..a0aec32e 100644 --- a/.github/workflows/yet_another_json_isolate.yml +++ b/.github/workflows/yet_another_json_isolate.yml @@ -51,4 +51,7 @@ jobs: run: dart analyze --fatal-warnings --fatal-infos . - name: Run tests - run: dart test + run: dart test --coverage=./coverage + + - name: Update coverage + run: melos run update-coverage diff --git a/melos.yaml b/melos.yaml index 798b8843..64514989 100644 --- a/melos.yaml +++ b/melos.yaml @@ -54,3 +54,16 @@ scripts: # Stage the version.dart file change git add packages/*/lib/src/version.dart description: Updates the version.dart file for each packages except yet_another_json_isolate + + update-coverage: + description: Updates the coverage for the workspace + run: | + # Activate coverage and combine_coverage + dart pub global activate coverage + dart pub global activate combine_coverage + + # Format coverage + dart pub global run coverage:format_coverage --lcov --in="./coverage/test" --out="./coverage/lcov.info" --report-on="./lib" + + # Combine coverage + dart pub global run combine_coverage --repo-path="../../" From 412d5fb6795ac95ff629cd1553c9a5a1012b5206 Mon Sep 17 00:00:00 2001 From: dshukertjr Date: Fri, 17 Jan 2025 16:42:38 +0900 Subject: [PATCH 02/17] chore: Upload coverage results --- .github/workflows/functions_client.yml | 6 ++++++ .github/workflows/gotrue.yml | 6 ++++++ .github/workflows/postgrest.yml | 6 ++++++ .github/workflows/realtime_client.yml | 6 ++++++ .github/workflows/storage_client.yml | 6 ++++++ .github/workflows/supabase.yml | 6 ++++++ .github/workflows/supabase_flutter.yml | 7 +++++-- .github/workflows/yet_another_json_isolate.yml | 6 ++++++ melos.yaml | 3 --- 9 files changed, 47 insertions(+), 5 deletions(-) diff --git a/.github/workflows/functions_client.yml b/.github/workflows/functions_client.yml index ca999942..74ff39b5 100644 --- a/.github/workflows/functions_client.yml +++ b/.github/workflows/functions_client.yml @@ -58,3 +58,9 @@ jobs: - name: Update coverage run: melos run update-coverage + + - name: Upload coverage results to Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: ./coverage/lcov.info diff --git a/.github/workflows/gotrue.yml b/.github/workflows/gotrue.yml index 29dbd319..e9c76a1c 100644 --- a/.github/workflows/gotrue.yml +++ b/.github/workflows/gotrue.yml @@ -66,3 +66,9 @@ jobs: - name: Update coverage run: melos run update-coverage + + - name: Upload coverage results to Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: ./coverage/lcov.info diff --git a/.github/workflows/postgrest.yml b/.github/workflows/postgrest.yml index 0b8e19b2..fdbaa1ce 100644 --- a/.github/workflows/postgrest.yml +++ b/.github/workflows/postgrest.yml @@ -68,3 +68,9 @@ jobs: - name: Update coverage run: melos run update-coverage + + - name: Upload coverage results to Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: ./coverage/lcov.info diff --git a/.github/workflows/realtime_client.yml b/.github/workflows/realtime_client.yml index f2bdbc43..db6b2a94 100644 --- a/.github/workflows/realtime_client.yml +++ b/.github/workflows/realtime_client.yml @@ -55,3 +55,9 @@ jobs: - name: Update coverage run: melos run update-coverage + + - name: Upload coverage results to Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: ./coverage/lcov.info diff --git a/.github/workflows/storage_client.yml b/.github/workflows/storage_client.yml index 8b1cb160..faea26d5 100644 --- a/.github/workflows/storage_client.yml +++ b/.github/workflows/storage_client.yml @@ -65,3 +65,9 @@ jobs: - name: Update coverage run: melos run update-coverage + + - name: Upload coverage results to Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: ./coverage/lcov.info diff --git a/.github/workflows/supabase.yml b/.github/workflows/supabase.yml index 7bb753e9..5b4cc43c 100644 --- a/.github/workflows/supabase.yml +++ b/.github/workflows/supabase.yml @@ -68,3 +68,9 @@ jobs: dart pub global activate combine_coverage melos run update-coverage dart pub global run combine_coverage --repo-path="../../" + + - name: Upload coverage results to Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: ./coverage/lcov.info diff --git a/.github/workflows/supabase_flutter.yml b/.github/workflows/supabase_flutter.yml index 64e7f531..f8274ef4 100644 --- a/.github/workflows/supabase_flutter.yml +++ b/.github/workflows/supabase_flutter.yml @@ -80,5 +80,8 @@ jobs: cd example flutter build web - - name: Update coverage - run: melos run update-coverage + - name: Upload coverage results to Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: ./coverage/lcov.info diff --git a/.github/workflows/yet_another_json_isolate.yml b/.github/workflows/yet_another_json_isolate.yml index a0aec32e..46b37062 100644 --- a/.github/workflows/yet_another_json_isolate.yml +++ b/.github/workflows/yet_another_json_isolate.yml @@ -55,3 +55,9 @@ jobs: - name: Update coverage run: melos run update-coverage + + - name: Upload coverage results to Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: ./coverage/lcov.info diff --git a/melos.yaml b/melos.yaml index 64514989..44eaec8f 100644 --- a/melos.yaml +++ b/melos.yaml @@ -64,6 +64,3 @@ scripts: # Format coverage dart pub global run coverage:format_coverage --lcov --in="./coverage/test" --out="./coverage/lcov.info" --report-on="./lib" - - # Combine coverage - dart pub global run combine_coverage --repo-path="../../" From f997258f94ad382c3724fa7fbcb3558d982c415d Mon Sep 17 00:00:00 2001 From: dshukertjr Date: Fri, 17 Jan 2025 17:03:57 +0900 Subject: [PATCH 03/17] removed unneccessary code --- .github/workflows/functions_client.yml | 4 ++-- .github/workflows/gotrue.yml | 4 ++-- .github/workflows/postgrest.yml | 4 ++-- .github/workflows/realtime_client.yml | 4 ++-- .github/workflows/storage_client.yml | 4 ++-- .github/workflows/supabase.yml | 8 +++----- .github/workflows/yet_another_json_isolate.yml | 4 ++-- melos.yaml | 3 +-- 8 files changed, 16 insertions(+), 19 deletions(-) diff --git a/.github/workflows/functions_client.yml b/.github/workflows/functions_client.yml index 74ff39b5..3b5726ef 100644 --- a/.github/workflows/functions_client.yml +++ b/.github/workflows/functions_client.yml @@ -56,8 +56,8 @@ jobs: - name: Run tests run: dart test --coverage=./coverage - - name: Update coverage - run: melos run update-coverage + - name: Format coverage + run: melos run format-coverage - name: Upload coverage results to Coveralls uses: coverallsapp/github-action@master diff --git a/.github/workflows/gotrue.yml b/.github/workflows/gotrue.yml index e9c76a1c..6514a1b4 100644 --- a/.github/workflows/gotrue.yml +++ b/.github/workflows/gotrue.yml @@ -64,8 +64,8 @@ jobs: - name: Run tests run: dart test --concurrency=1 --coverage=./coverage - - name: Update coverage - run: melos run update-coverage + - name: Format coverage + run: melos run format-coverage - name: Upload coverage results to Coveralls uses: coverallsapp/github-action@master diff --git a/.github/workflows/postgrest.yml b/.github/workflows/postgrest.yml index fdbaa1ce..2ed2dcc0 100644 --- a/.github/workflows/postgrest.yml +++ b/.github/workflows/postgrest.yml @@ -66,8 +66,8 @@ jobs: - name: Run tests run: dart test --concurrency=1 --coverage=./coverage - - name: Update coverage - run: melos run update-coverage + - name: Format coverage + run: melos run format-coverage - name: Upload coverage results to Coveralls uses: coverallsapp/github-action@master diff --git a/.github/workflows/realtime_client.yml b/.github/workflows/realtime_client.yml index db6b2a94..c170ac8a 100644 --- a/.github/workflows/realtime_client.yml +++ b/.github/workflows/realtime_client.yml @@ -53,8 +53,8 @@ jobs: - name: Run tests run: dart test --coverage=./coverage - - name: Update coverage - run: melos run update-coverage + - name: Format coverage + run: melos run format-coverage - name: Upload coverage results to Coveralls uses: coverallsapp/github-action@master diff --git a/.github/workflows/storage_client.yml b/.github/workflows/storage_client.yml index faea26d5..194d58c7 100644 --- a/.github/workflows/storage_client.yml +++ b/.github/workflows/storage_client.yml @@ -63,8 +63,8 @@ jobs: - name: Run tests run: dart test --coverage=./coverage - - name: Update coverage - run: melos run update-coverage + - name: Format coverage + run: melos run format-coverage - name: Upload coverage results to Coveralls uses: coverallsapp/github-action@master diff --git a/.github/workflows/supabase.yml b/.github/workflows/supabase.yml index 5b4cc43c..4cebc61c 100644 --- a/.github/workflows/supabase.yml +++ b/.github/workflows/supabase.yml @@ -63,11 +63,9 @@ jobs: - name: Run tests run: dart test --concurrency=1 --coverage=./coverage - - name: Update coverage - run: | - dart pub global activate combine_coverage - melos run update-coverage - dart pub global run combine_coverage --repo-path="../../" + - name: Format coverage + run: melos run format-coverage + - name: Upload coverage results to Coveralls uses: coverallsapp/github-action@master diff --git a/.github/workflows/yet_another_json_isolate.yml b/.github/workflows/yet_another_json_isolate.yml index 46b37062..28d59390 100644 --- a/.github/workflows/yet_another_json_isolate.yml +++ b/.github/workflows/yet_another_json_isolate.yml @@ -53,8 +53,8 @@ jobs: - name: Run tests run: dart test --coverage=./coverage - - name: Update coverage - run: melos run update-coverage + - name: Format coverage + run: melos run format-coverage - name: Upload coverage results to Coveralls uses: coverallsapp/github-action@master diff --git a/melos.yaml b/melos.yaml index 44eaec8f..3ce91308 100644 --- a/melos.yaml +++ b/melos.yaml @@ -58,9 +58,8 @@ scripts: update-coverage: description: Updates the coverage for the workspace run: | - # Activate coverage and combine_coverage + # Activate coverage dart pub global activate coverage - dart pub global activate combine_coverage # Format coverage dart pub global run coverage:format_coverage --lcov --in="./coverage/test" --out="./coverage/lcov.info" --report-on="./lib" From e3e56817bda38bf84f35d8969162f93aaad0b48d Mon Sep 17 00:00:00 2001 From: dshukertjr Date: Fri, 17 Jan 2025 17:58:05 +0900 Subject: [PATCH 04/17] update command name --- melos.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/melos.yaml b/melos.yaml index 3ce91308..6677122a 100644 --- a/melos.yaml +++ b/melos.yaml @@ -55,7 +55,7 @@ scripts: git add packages/*/lib/src/version.dart description: Updates the version.dart file for each packages except yet_another_json_isolate - update-coverage: + format-coverage: description: Updates the coverage for the workspace run: | # Activate coverage From 5f861503627153e77fcc3593f31d3e4cb7eb19b1 Mon Sep 17 00:00:00 2001 From: dshukertjr Date: Fri, 17 Jan 2025 18:04:14 +0900 Subject: [PATCH 05/17] test command --- .github/workflows/functions_client.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/functions_client.yml b/.github/workflows/functions_client.yml index 3b5726ef..79733bc6 100644 --- a/.github/workflows/functions_client.yml +++ b/.github/workflows/functions_client.yml @@ -57,7 +57,9 @@ jobs: run: dart test --coverage=./coverage - name: Format coverage - run: melos run format-coverage + run: | + pwd + melos run format-coverage - name: Upload coverage results to Coveralls uses: coverallsapp/github-action@master From f07263429a90ee65ba8ccc246bc9a16980c47c07 Mon Sep 17 00:00:00 2001 From: dshukertjr Date: Sat, 18 Jan 2025 20:24:01 +0900 Subject: [PATCH 06/17] verify melos path --- .github/workflows/functions_client.yml | 4 +--- melos.yaml | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/functions_client.yml b/.github/workflows/functions_client.yml index 79733bc6..3b5726ef 100644 --- a/.github/workflows/functions_client.yml +++ b/.github/workflows/functions_client.yml @@ -57,9 +57,7 @@ jobs: run: dart test --coverage=./coverage - name: Format coverage - run: | - pwd - melos run format-coverage + run: melos run format-coverage - name: Upload coverage results to Coveralls uses: coverallsapp/github-action@master diff --git a/melos.yaml b/melos.yaml index 6677122a..9b8e200e 100644 --- a/melos.yaml +++ b/melos.yaml @@ -58,6 +58,7 @@ scripts: format-coverage: description: Updates the coverage for the workspace run: | + pwd # Activate coverage dart pub global activate coverage From 95d7c0683b98e5474b9e541803c8d380e2f877b9 Mon Sep 17 00:00:00 2001 From: dshukertjr Date: Sun, 19 Jan 2025 15:27:39 +0900 Subject: [PATCH 07/17] Update workflow to format and upload the report --- .github/workflows/functions_client.yml | 5 ++++- .github/workflows/gotrue.yml | 4 +++- .github/workflows/postgrest.yml | 4 +++- .github/workflows/realtime_client.yml | 4 +++- .github/workflows/storage_client.yml | 4 +++- .github/workflows/supabase.yml | 5 +++-- .github/workflows/yet_another_json_isolate.yml | 4 +++- melos.yaml | 10 ---------- 8 files changed, 22 insertions(+), 18 deletions(-) diff --git a/.github/workflows/functions_client.yml b/.github/workflows/functions_client.yml index 3b5726ef..3a650259 100644 --- a/.github/workflows/functions_client.yml +++ b/.github/workflows/functions_client.yml @@ -57,7 +57,10 @@ jobs: run: dart test --coverage=./coverage - name: Format coverage - run: melos run format-coverage + run: | + melos run format-coverage + dart pub global activate coverage + dart pub global run coverage:format_coverage --lcov --in="./coverage/test" --out="./coverage/lcov.info" --report-on="./lib" - name: Upload coverage results to Coveralls uses: coverallsapp/github-action@master diff --git a/.github/workflows/gotrue.yml b/.github/workflows/gotrue.yml index 6514a1b4..991509b4 100644 --- a/.github/workflows/gotrue.yml +++ b/.github/workflows/gotrue.yml @@ -65,7 +65,9 @@ jobs: run: dart test --concurrency=1 --coverage=./coverage - name: Format coverage - run: melos run format-coverage + run: | + dart pub global activate coverage + dart pub global run coverage:format_coverage --lcov --in="./coverage/test" --out="./coverage/lcov.info" --report-on="./lib" - name: Upload coverage results to Coveralls uses: coverallsapp/github-action@master diff --git a/.github/workflows/postgrest.yml b/.github/workflows/postgrest.yml index 2ed2dcc0..abe2d713 100644 --- a/.github/workflows/postgrest.yml +++ b/.github/workflows/postgrest.yml @@ -67,7 +67,9 @@ jobs: run: dart test --concurrency=1 --coverage=./coverage - name: Format coverage - run: melos run format-coverage + run: | + dart pub global activate coverage + dart pub global run coverage:format_coverage --lcov --in="./coverage/test" --out="./coverage/lcov.info" --report-on="./lib" - name: Upload coverage results to Coveralls uses: coverallsapp/github-action@master diff --git a/.github/workflows/realtime_client.yml b/.github/workflows/realtime_client.yml index c170ac8a..3797cc3f 100644 --- a/.github/workflows/realtime_client.yml +++ b/.github/workflows/realtime_client.yml @@ -54,7 +54,9 @@ jobs: run: dart test --coverage=./coverage - name: Format coverage - run: melos run format-coverage + run: | + dart pub global activate coverage + dart pub global run coverage:format_coverage --lcov --in="./coverage/test" --out="./coverage/lcov.info" --report-on="./lib" - name: Upload coverage results to Coveralls uses: coverallsapp/github-action@master diff --git a/.github/workflows/storage_client.yml b/.github/workflows/storage_client.yml index 194d58c7..ae668f0b 100644 --- a/.github/workflows/storage_client.yml +++ b/.github/workflows/storage_client.yml @@ -64,7 +64,9 @@ jobs: run: dart test --coverage=./coverage - name: Format coverage - run: melos run format-coverage + run: | + dart pub global activate coverage + dart pub global run coverage:format_coverage --lcov --in="./coverage/test" --out="./coverage/lcov.info" --report-on="./lib" - name: Upload coverage results to Coveralls uses: coverallsapp/github-action@master diff --git a/.github/workflows/supabase.yml b/.github/workflows/supabase.yml index 4cebc61c..29bccbe7 100644 --- a/.github/workflows/supabase.yml +++ b/.github/workflows/supabase.yml @@ -64,8 +64,9 @@ jobs: run: dart test --concurrency=1 --coverage=./coverage - name: Format coverage - run: melos run format-coverage - + run: | + dart pub global activate coverage + dart pub global run coverage:format_coverage --lcov --in="./coverage/test" --out="./coverage/lcov.info" --report-on="./lib" - name: Upload coverage results to Coveralls uses: coverallsapp/github-action@master diff --git a/.github/workflows/yet_another_json_isolate.yml b/.github/workflows/yet_another_json_isolate.yml index 28d59390..38d70cf1 100644 --- a/.github/workflows/yet_another_json_isolate.yml +++ b/.github/workflows/yet_another_json_isolate.yml @@ -54,7 +54,9 @@ jobs: run: dart test --coverage=./coverage - name: Format coverage - run: melos run format-coverage + run: | + dart pub global activate coverage + dart pub global run coverage:format_coverage --lcov --in="./coverage/test" --out="./coverage/lcov.info" --report-on="./lib" - name: Upload coverage results to Coveralls uses: coverallsapp/github-action@master diff --git a/melos.yaml b/melos.yaml index 9b8e200e..798b8843 100644 --- a/melos.yaml +++ b/melos.yaml @@ -54,13 +54,3 @@ scripts: # Stage the version.dart file change git add packages/*/lib/src/version.dart description: Updates the version.dart file for each packages except yet_another_json_isolate - - format-coverage: - description: Updates the coverage for the workspace - run: | - pwd - # Activate coverage - dart pub global activate coverage - - # Format coverage - dart pub global run coverage:format_coverage --lcov --in="./coverage/test" --out="./coverage/lcov.info" --report-on="./lib" From d972f09c245823d5063b37e504f49d1ea230c920 Mon Sep 17 00:00:00 2001 From: dshukertjr Date: Sun, 19 Jan 2025 15:39:49 +0900 Subject: [PATCH 08/17] fix functions ci --- .github/workflows/functions_client.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/functions_client.yml b/.github/workflows/functions_client.yml index 3a650259..cbbe9ff5 100644 --- a/.github/workflows/functions_client.yml +++ b/.github/workflows/functions_client.yml @@ -58,7 +58,6 @@ jobs: - name: Format coverage run: | - melos run format-coverage dart pub global activate coverage dart pub global run coverage:format_coverage --lcov --in="./coverage/test" --out="./coverage/lcov.info" --report-on="./lib" From e2945500b91e040dc5288a342947d621471c1003 Mon Sep 17 00:00:00 2001 From: dshukertjr Date: Sun, 19 Jan 2025 15:54:01 +0900 Subject: [PATCH 09/17] update path of functionc ci --- .github/workflows/functions_client.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/functions_client.yml b/.github/workflows/functions_client.yml index cbbe9ff5..e239797d 100644 --- a/.github/workflows/functions_client.yml +++ b/.github/workflows/functions_client.yml @@ -65,4 +65,4 @@ jobs: uses: coverallsapp/github-action@master with: github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: ./coverage/lcov.info + path-to-lcov: ./packages/functions_client/coverage/lcov.info From f0963eab3090e00349bfbf8c9007350041e78856 Mon Sep 17 00:00:00 2001 From: dshukertjr Date: Sun, 19 Jan 2025 15:57:28 +0900 Subject: [PATCH 10/17] fix path for all ci --- .github/workflows/gotrue.yml | 2 +- .github/workflows/postgrest.yml | 2 +- .github/workflows/realtime_client.yml | 2 +- .github/workflows/storage_client.yml | 2 +- .github/workflows/supabase.yml | 2 +- .github/workflows/supabase_flutter.yml | 2 +- .github/workflows/yet_another_json_isolate.yml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/gotrue.yml b/.github/workflows/gotrue.yml index 991509b4..f9773b0d 100644 --- a/.github/workflows/gotrue.yml +++ b/.github/workflows/gotrue.yml @@ -73,4 +73,4 @@ jobs: uses: coverallsapp/github-action@master with: github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: ./coverage/lcov.info + path-to-lcov: ./packages/gotrue/coverage/lcov.info diff --git a/.github/workflows/postgrest.yml b/.github/workflows/postgrest.yml index abe2d713..e33ce2be 100644 --- a/.github/workflows/postgrest.yml +++ b/.github/workflows/postgrest.yml @@ -75,4 +75,4 @@ jobs: uses: coverallsapp/github-action@master with: github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: ./coverage/lcov.info + path-to-lcov: ./packages/postgrest/coverage/lcov.info diff --git a/.github/workflows/realtime_client.yml b/.github/workflows/realtime_client.yml index 3797cc3f..970c82cf 100644 --- a/.github/workflows/realtime_client.yml +++ b/.github/workflows/realtime_client.yml @@ -62,4 +62,4 @@ jobs: uses: coverallsapp/github-action@master with: github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: ./coverage/lcov.info + path-to-lcov: ./packages/realtime_client/coverage/lcov.info diff --git a/.github/workflows/storage_client.yml b/.github/workflows/storage_client.yml index ae668f0b..ffa3a533 100644 --- a/.github/workflows/storage_client.yml +++ b/.github/workflows/storage_client.yml @@ -72,4 +72,4 @@ jobs: uses: coverallsapp/github-action@master with: github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: ./coverage/lcov.info + path-to-lcov: ./packages/storage_client/coverage/lcov.info diff --git a/.github/workflows/supabase.yml b/.github/workflows/supabase.yml index 29bccbe7..e3a1a8b1 100644 --- a/.github/workflows/supabase.yml +++ b/.github/workflows/supabase.yml @@ -72,4 +72,4 @@ jobs: uses: coverallsapp/github-action@master with: github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: ./coverage/lcov.info + path-to-lcov: ./packages/supabase/coverage/lcov.info diff --git a/.github/workflows/supabase_flutter.yml b/.github/workflows/supabase_flutter.yml index f8274ef4..067af78a 100644 --- a/.github/workflows/supabase_flutter.yml +++ b/.github/workflows/supabase_flutter.yml @@ -84,4 +84,4 @@ jobs: uses: coverallsapp/github-action@master with: github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: ./coverage/lcov.info + path-to-lcov: ./packages/supabase_flutter/coverage/lcov.info diff --git a/.github/workflows/yet_another_json_isolate.yml b/.github/workflows/yet_another_json_isolate.yml index 38d70cf1..2e9f33e9 100644 --- a/.github/workflows/yet_another_json_isolate.yml +++ b/.github/workflows/yet_another_json_isolate.yml @@ -62,4 +62,4 @@ jobs: uses: coverallsapp/github-action@master with: github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: ./coverage/lcov.info + path-to-lcov: ./packages/yet_another_json_isolate/coverage/lcov.info From f596d437a9604b8d4e580255e7a903e38a7e0817 Mon Sep 17 00:00:00 2001 From: dshukertjr Date: Sun, 19 Jan 2025 16:03:11 +0900 Subject: [PATCH 11/17] fix: Update type for customAccessToken --- packages/realtime_client/lib/src/realtime_client.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/realtime_client/lib/src/realtime_client.dart b/packages/realtime_client/lib/src/realtime_client.dart index 3ecfb612..b565def9 100644 --- a/packages/realtime_client/lib/src/realtime_client.dart +++ b/packages/realtime_client/lib/src/realtime_client.dart @@ -91,7 +91,7 @@ class RealtimeClient { int longpollerTimeout = 20000; SocketStates? connState; // This is called `accessToken` in realtime-js - Future Function()? customAccessToken; + Future Function()? customAccessToken; /// Initializes the Socket /// From 50448b49d6415171764f1294778199810fda39e1 Mon Sep 17 00:00:00 2001 From: dshukertjr Date: Sun, 19 Jan 2025 16:14:37 +0900 Subject: [PATCH 12/17] set concurrency to 1 for realtime tests --- .github/workflows/realtime_client.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/realtime_client.yml b/.github/workflows/realtime_client.yml index 970c82cf..2cf638a2 100644 --- a/.github/workflows/realtime_client.yml +++ b/.github/workflows/realtime_client.yml @@ -51,7 +51,7 @@ jobs: run: dart analyze --fatal-warnings --fatal-infos . - name: Run tests - run: dart test --coverage=./coverage + run: dart test --concurrency=1 --coverage=./coverage - name: Format coverage run: | From 8c823e1629bd5528f8fb4249267c648754ca907c Mon Sep 17 00:00:00 2001 From: dshukertjr Date: Sun, 19 Jan 2025 23:06:12 +0900 Subject: [PATCH 13/17] fix: failing realtime tests --- packages/realtime_client/test/socket_test.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/realtime_client/test/socket_test.dart b/packages/realtime_client/test/socket_test.dart index 55c50914..b9dc92ad 100644 --- a/packages/realtime_client/test/socket_test.dart +++ b/packages/realtime_client/test/socket_test.dart @@ -393,6 +393,7 @@ void main() { mockedSink = MockWebSocketSink(); when(() => mockedSocketChannel.sink).thenReturn(mockedSink); + when(() => mockedSink.close()).thenAnswer((_) => Future.value()); }); test('sends data to connection when connected', () { @@ -575,6 +576,7 @@ void main() { mockedSink = MockWebSocketSink(); when(() => mockedSocketChannel.sink).thenReturn(mockedSink); + when(() => mockedSink.close()).thenAnswer((_) => Future.value()); mockedSocket.connect(); }); From 86e378eead10a1b6e2778886c3642a99acca0660 Mon Sep 17 00:00:00 2001 From: dshukertjr Date: Sun, 19 Jan 2025 23:09:36 +0900 Subject: [PATCH 14/17] add stub to realtime --- packages/realtime_client/test/socket_test.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/realtime_client/test/socket_test.dart b/packages/realtime_client/test/socket_test.dart index b9dc92ad..015e1e7f 100644 --- a/packages/realtime_client/test/socket_test.dart +++ b/packages/realtime_client/test/socket_test.dart @@ -394,6 +394,8 @@ void main() { when(() => mockedSocketChannel.sink).thenReturn(mockedSink); when(() => mockedSink.close()).thenAnswer((_) => Future.value()); + when(() => mockedSink.close(any(), any())) + .thenAnswer((_) => Future.value()); }); test('sends data to connection when connected', () { From 74f3585cd521e0f7ec3978c2c14e005ec89ff5b1 Mon Sep 17 00:00:00 2001 From: dshukertjr Date: Sun, 19 Jan 2025 23:18:05 +0900 Subject: [PATCH 15/17] more stubs --- packages/realtime_client/test/socket_test.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/realtime_client/test/socket_test.dart b/packages/realtime_client/test/socket_test.dart index 015e1e7f..a71f4f33 100644 --- a/packages/realtime_client/test/socket_test.dart +++ b/packages/realtime_client/test/socket_test.dart @@ -393,9 +393,8 @@ void main() { mockedSink = MockWebSocketSink(); when(() => mockedSocketChannel.sink).thenReturn(mockedSink); + when(() => mockedSocketChannel.ready).thenAnswer((_) => Future.value()); when(() => mockedSink.close()).thenAnswer((_) => Future.value()); - when(() => mockedSink.close(any(), any())) - .thenAnswer((_) => Future.value()); }); test('sends data to connection when connected', () { @@ -410,7 +409,7 @@ void main() { .called(1); }); - test('buffers data when not connected', () { + test('buffers data when not connected', () async { mockedSocket.connect(); mockedSocket.connState = SocketStates.connecting; @@ -579,6 +578,7 @@ void main() { when(() => mockedSocketChannel.sink).thenReturn(mockedSink); when(() => mockedSink.close()).thenAnswer((_) => Future.value()); + when(() => mockedSocketChannel.ready).thenAnswer((_) => Future.value()); mockedSocket.connect(); }); From 114ca0f17d611be8e8c19b808335fd2c989390a9 Mon Sep 17 00:00:00 2001 From: dshukertjr Date: Mon, 20 Jan 2025 00:03:50 +0900 Subject: [PATCH 16/17] update analyzer check in ci --- .github/workflows/functions_client.yml | 5 +++++ .github/workflows/gotrue.yml | 5 +++++ .github/workflows/postgrest.yml | 5 +++++ .github/workflows/realtime_client.yml | 5 +++++ .github/workflows/storage_client.yml | 5 +++++ .github/workflows/supabase.yml | 5 +++++ .github/workflows/yet_another_json_isolate.yml | 5 +++++ 7 files changed, 35 insertions(+) diff --git a/.github/workflows/functions_client.yml b/.github/workflows/functions_client.yml index e239797d..5567c48f 100644 --- a/.github/workflows/functions_client.yml +++ b/.github/workflows/functions_client.yml @@ -51,8 +51,13 @@ jobs: run: dart format lib test -l 80 --set-exit-if-changed - name: analyzer + if: ${{ matrix.sdk == 'stable'}} run: dart analyze --fatal-warnings --fatal-infos . + - name: analyzer + if: ${{ matrix.sdk == 'beta' || matrix.sdk == 'dev' }} + run: dart analyze + - name: Run tests run: dart test --coverage=./coverage diff --git a/.github/workflows/gotrue.yml b/.github/workflows/gotrue.yml index f9773b0d..426d33bc 100644 --- a/.github/workflows/gotrue.yml +++ b/.github/workflows/gotrue.yml @@ -48,8 +48,13 @@ jobs: run: dart format lib test -l 80 --set-exit-if-changed - name: analyzer + if: ${{ matrix.sdk == 'stable'}} run: dart analyze --fatal-warnings --fatal-infos . + - name: analyzer + if: ${{ matrix.sdk == 'beta' || matrix.sdk == 'dev' }} + run: dart analyze + - name: Build Docker image run: | cd ../../infra/gotrue diff --git a/.github/workflows/postgrest.yml b/.github/workflows/postgrest.yml index e33ce2be..2652b66a 100644 --- a/.github/workflows/postgrest.yml +++ b/.github/workflows/postgrest.yml @@ -50,8 +50,13 @@ jobs: run: dart format lib test -l 80 --set-exit-if-changed - name: analyzer + if: ${{ matrix.sdk == 'stable'}} run: dart analyze --fatal-warnings --fatal-infos . + - name: analyzer + if: ${{ matrix.sdk == 'beta' || matrix.sdk == 'dev' }} + run: dart analyze + - name: Build Docker image run: | cd ../../infra/postgrest diff --git a/.github/workflows/realtime_client.yml b/.github/workflows/realtime_client.yml index 2cf638a2..50f34d5d 100644 --- a/.github/workflows/realtime_client.yml +++ b/.github/workflows/realtime_client.yml @@ -48,8 +48,13 @@ jobs: run: dart format lib test -l 80 --set-exit-if-changed - name: analyzer + if: ${{ matrix.sdk == 'stable'}} run: dart analyze --fatal-warnings --fatal-infos . + - name: analyzer + if: ${{ matrix.sdk == 'beta' || matrix.sdk == 'dev' }} + run: dart analyze + - name: Run tests run: dart test --concurrency=1 --coverage=./coverage diff --git a/.github/workflows/storage_client.yml b/.github/workflows/storage_client.yml index ffa3a533..fa3e4171 100644 --- a/.github/workflows/storage_client.yml +++ b/.github/workflows/storage_client.yml @@ -47,8 +47,13 @@ jobs: run: dart format lib test -l 80 --set-exit-if-changed - name: analyzer + if: ${{ matrix.sdk == 'stable'}} run: dart analyze --fatal-warnings --fatal-infos . + - name: analyzer + if: ${{ matrix.sdk == 'beta' || matrix.sdk == 'dev' }} + run: dart analyze + - name: Build Docker image run: | cd ../../infra/storage_client diff --git a/.github/workflows/supabase.yml b/.github/workflows/supabase.yml index e3a1a8b1..a8a4ffc6 100644 --- a/.github/workflows/supabase.yml +++ b/.github/workflows/supabase.yml @@ -58,8 +58,13 @@ jobs: run: dart format lib test -l 80 --set-exit-if-changed - name: analyzer + if: ${{ matrix.sdk == 'stable'}} run: dart analyze --fatal-warnings --fatal-infos . + - name: analyzer + if: ${{ matrix.sdk == 'beta' || matrix.sdk == 'dev' }} + run: dart analyze + - name: Run tests run: dart test --concurrency=1 --coverage=./coverage diff --git a/.github/workflows/yet_another_json_isolate.yml b/.github/workflows/yet_another_json_isolate.yml index 2e9f33e9..b2e19a5e 100644 --- a/.github/workflows/yet_another_json_isolate.yml +++ b/.github/workflows/yet_another_json_isolate.yml @@ -48,8 +48,13 @@ jobs: run: dart format lib test -l 80 --set-exit-if-changed - name: analyzer + if: ${{ matrix.sdk == 'stable'}} run: dart analyze --fatal-warnings --fatal-infos . + - name: analyzer + if: ${{ matrix.sdk == 'beta' || matrix.sdk == 'dev' }} + run: dart analyze + - name: Run tests run: dart test --coverage=./coverage From 166b0f6caab5a8375f1860089bb91df194a87096 Mon Sep 17 00:00:00 2001 From: dshukertjr Date: Mon, 20 Jan 2025 14:15:17 +0900 Subject: [PATCH 17/17] Run tests on every PR for every packages and upload combined coverage report --- .github/workflows/coverage.yml | 52 +++++++++++++++++++ .github/workflows/functions_client.yml | 19 +++---- .github/workflows/gotrue.yml | 16 ++---- .github/workflows/postgrest.yml | 18 ++----- .github/workflows/realtime_client.yml | 16 ++---- .github/workflows/storage_client.yml | 15 ++---- .github/workflows/supabase.yml | 26 ++-------- .github/workflows/supabase_flutter.yml | 30 ++--------- .../workflows/yet_another_json_isolate.yml | 16 ++---- melos.yaml | 3 +- 10 files changed, 95 insertions(+), 116 deletions(-) create mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 00000000..cd60f436 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,52 @@ +name: Combined Coverage Report + +on: + workflow_run: + workflows: + - 'functions_client' + - 'gotrue' + - 'postgrest' + - 'realtime_client' + - 'storage_client' + - 'supabase' + - 'supabase_flutter' + - 'yet_another_json_isolate' + types: + - completed + +jobs: + combine-coverage: + runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Dart + uses: dart-lang/setup-dart@v1 + with: + sdk: stable + + - name: Install coverage tool + run: dart pub global activate coverage + + - name: Create coverage directory + run: mkdir -p coverage + + - name: Download coverage artifacts + uses: actions/download-artifact@v4 + with: + pattern: coverage-flutter-* + github-token: ${{ secrets.GITHUB_TOKEN }} + run-id: ${{ github.event.workflow_run.id }} + + - name: Combine coverage reports + run: | + find coverage -name "lcov.info" -exec cat {} + > coverage/combined_lcov.info + + - name: Upload combined coverage to Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: coverage/combined_lcov.info diff --git a/.github/workflows/functions_client.yml b/.github/workflows/functions_client.yml index 5567c48f..e5088782 100644 --- a/.github/workflows/functions_client.yml +++ b/.github/workflows/functions_client.yml @@ -4,16 +4,7 @@ on: push: branches: - main - paths: - - 'packages/functions_client/**' - - '.github/workflows/functions_client.yml' - - 'packages/yet_another_json_isolate/**' - pull_request: - paths: - - 'packages/functions_client/**' - - '.github/workflows/functions_client.yml' - - 'packages/yet_another_json_isolate/**' jobs: test: @@ -62,12 +53,14 @@ jobs: run: dart test --coverage=./coverage - name: Format coverage + if: ${{ matrix.sdk == 'stable'}} run: | dart pub global activate coverage dart pub global run coverage:format_coverage --lcov --in="./coverage/test" --out="./coverage/lcov.info" --report-on="./lib" - - name: Upload coverage results to Coveralls - uses: coverallsapp/github-action@master + - name: Upload coverage artifact + if: ${{ matrix.sdk == 'stable'}} + uses: actions/upload-artifact@v4 with: - github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: ./packages/functions_client/coverage/lcov.info + name: coverage-flutter-functions-client + path: ./packages/functions_client/coverage/lcov.info diff --git a/.github/workflows/gotrue.yml b/.github/workflows/gotrue.yml index 426d33bc..31cf0071 100644 --- a/.github/workflows/gotrue.yml +++ b/.github/workflows/gotrue.yml @@ -4,14 +4,7 @@ on: push: branches: - main - paths: - - 'packages/gotrue/**' - - '.github/workflows/gotrue.yml' - pull_request: - paths: - - 'packages/gotrue/**' - - '.github/workflows/gotrue.yml' jobs: test: @@ -74,8 +67,9 @@ jobs: dart pub global activate coverage dart pub global run coverage:format_coverage --lcov --in="./coverage/test" --out="./coverage/lcov.info" --report-on="./lib" - - name: Upload coverage results to Coveralls - uses: coverallsapp/github-action@master + - name: Upload coverage artifact + if: ${{ matrix.sdk == 'stable'}} + uses: actions/upload-artifact@v4 with: - github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: ./packages/gotrue/coverage/lcov.info + name: coverage-flutter-gotrue + path: ./packages/gotrue/coverage/lcov.info diff --git a/.github/workflows/postgrest.yml b/.github/workflows/postgrest.yml index 2652b66a..04c86f6b 100644 --- a/.github/workflows/postgrest.yml +++ b/.github/workflows/postgrest.yml @@ -4,16 +4,7 @@ on: push: branches: - main - paths: - - 'packages/postgrest/**' - - '.github/workflows/postgrest.yml' - - 'packages/yet_another_json_isolate/**' - pull_request: - paths: - - 'packages/postgrest/**' - - '.github/workflows/postgrest.yml' - - 'packages/yet_another_json_isolate/**' jobs: test: @@ -76,8 +67,9 @@ jobs: dart pub global activate coverage dart pub global run coverage:format_coverage --lcov --in="./coverage/test" --out="./coverage/lcov.info" --report-on="./lib" - - name: Upload coverage results to Coveralls - uses: coverallsapp/github-action@master + - name: Upload coverage artifact + if: ${{ matrix.sdk == 'stable'}} + uses: actions/upload-artifact@v4 with: - github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: ./packages/postgrest/coverage/lcov.info + name: coverage-flutter-postgrest + path: ./packages/postgrest/coverage/lcov.info diff --git a/.github/workflows/realtime_client.yml b/.github/workflows/realtime_client.yml index 50f34d5d..002a0f85 100644 --- a/.github/workflows/realtime_client.yml +++ b/.github/workflows/realtime_client.yml @@ -4,14 +4,7 @@ on: push: branches: - main - paths: - - 'packages/realtime_client/**' - - '.github/workflows/realtime_client.yml' - pull_request: - paths: - - 'packages/realtime_client/**' - - '.github/workflows/realtime_client.yml' jobs: test: @@ -63,8 +56,9 @@ jobs: dart pub global activate coverage dart pub global run coverage:format_coverage --lcov --in="./coverage/test" --out="./coverage/lcov.info" --report-on="./lib" - - name: Upload coverage results to Coveralls - uses: coverallsapp/github-action@master + - name: Upload coverage artifact + if: ${{ matrix.sdk == 'stable'}} + uses: actions/upload-artifact@v4 with: - github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: ./packages/realtime_client/coverage/lcov.info + name: coverage-flutter-realtime-client + path: ./packages/realtime_client/coverage/lcov.info diff --git a/.github/workflows/storage_client.yml b/.github/workflows/storage_client.yml index fa3e4171..ac00962a 100644 --- a/.github/workflows/storage_client.yml +++ b/.github/workflows/storage_client.yml @@ -4,13 +4,7 @@ on: push: branches: - main - paths: - - 'packages/storage_client/**' - - '.github/workflows/storage_client.yml' pull_request: - paths: - - 'packages/storage_client/**' - - '.github/workflows/storage_client.yml' jobs: test: @@ -73,8 +67,9 @@ jobs: dart pub global activate coverage dart pub global run coverage:format_coverage --lcov --in="./coverage/test" --out="./coverage/lcov.info" --report-on="./lib" - - name: Upload coverage results to Coveralls - uses: coverallsapp/github-action@master + - name: Upload coverage artifact + if: ${{ matrix.sdk == 'stable'}} + uses: actions/upload-artifact@v4 with: - github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: ./packages/storage_client/coverage/lcov.info + name: coverage-flutter-storage-client + path: ./packages/storage_client/coverage/lcov.info diff --git a/.github/workflows/supabase.yml b/.github/workflows/supabase.yml index a8a4ffc6..32e9bb69 100644 --- a/.github/workflows/supabase.yml +++ b/.github/workflows/supabase.yml @@ -4,24 +4,7 @@ on: push: branches: - main - paths: - - 'packages/supabase/**' - - '.github/workflows/supabase.yml' - - 'packages/functions_client/**' - - 'packages/gotrue/**' - - 'packages/postgrest/**' - - 'packages/realtime_client/**' - - 'packages/storage_client/**' - pull_request: - paths: - - 'packages/supabase/**' - - '.github/workflows/supabase.yml' - - 'packages/functions_client/**' - - 'packages/gotrue/**' - - 'packages/postgrest/**' - - 'packages/realtime_client/**' - - 'packages/storage_client/**' jobs: test: @@ -73,8 +56,9 @@ jobs: dart pub global activate coverage dart pub global run coverage:format_coverage --lcov --in="./coverage/test" --out="./coverage/lcov.info" --report-on="./lib" - - name: Upload coverage results to Coveralls - uses: coverallsapp/github-action@master + - name: Upload coverage artifact + if: ${{ matrix.sdk == 'stable'}} + uses: actions/upload-artifact@v4 with: - github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: ./packages/supabase/coverage/lcov.info + name: coverage-flutter-supabase + path: ./packages/supabase/coverage/lcov.info diff --git a/.github/workflows/supabase_flutter.yml b/.github/workflows/supabase_flutter.yml index 067af78a..c7ba70ee 100644 --- a/.github/workflows/supabase_flutter.yml +++ b/.github/workflows/supabase_flutter.yml @@ -4,28 +4,7 @@ on: push: branches: - main - paths: - - 'packages/supabase_flutter/**' - - '.github/workflows/supabase_flutter.yml' - - 'packages/functions_client/**' - - 'packages/gotrue/**' - - 'packages/postgrest/**' - - 'packages/realtime_client/**' - - 'packages/storage_client/**' - - 'packages/supabase/**' - - 'packages/yet_another_json_isolate/**' - pull_request: - paths: - - 'packages/supabase_flutter/**' - - '.github/workflows/supabase_flutter.yml' - - 'packages/functions_client/**' - - 'packages/gotrue/**' - - 'packages/postgrest/**' - - 'packages/realtime_client/**' - - 'packages/storage_client/**' - - 'packages/supabase/**' - - 'packages/yet_another_json_isolate/**' jobs: test: @@ -80,8 +59,9 @@ jobs: cd example flutter build web - - name: Upload coverage results to Coveralls - uses: coverallsapp/github-action@master + - name: Upload coverage artifact + if: ${{ matrix.sdk == 'stable'}} + uses: actions/upload-artifact@v4 with: - github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: ./packages/supabase_flutter/coverage/lcov.info + name: coverage-flutter-supabase-flutter + path: ./packages/supabase_flutter/coverage/lcov.info diff --git a/.github/workflows/yet_another_json_isolate.yml b/.github/workflows/yet_another_json_isolate.yml index b2e19a5e..fea23635 100644 --- a/.github/workflows/yet_another_json_isolate.yml +++ b/.github/workflows/yet_another_json_isolate.yml @@ -4,14 +4,7 @@ on: push: branches: - main - paths: - - 'packages/yet_another_json_isolate/**' - - '.github/workflows/yet_another_json_isolate.yml' - pull_request: - paths: - - 'packages/yet_another_json_isolate/**' - - '.github/workflows/yet_another_json_isolate.yml' jobs: test: @@ -63,8 +56,9 @@ jobs: dart pub global activate coverage dart pub global run coverage:format_coverage --lcov --in="./coverage/test" --out="./coverage/lcov.info" --report-on="./lib" - - name: Upload coverage results to Coveralls - uses: coverallsapp/github-action@master + - name: Upload coverage artifact + if: ${{ matrix.sdk == 'stable'}} + uses: actions/upload-artifact@v4 with: - github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: ./packages/yet_another_json_isolate/coverage/lcov.info + name: coverage-flutter-yet-another-json-isolate + path: ./packages/yet_another_json_isolate/coverage/lcov.info diff --git a/melos.yaml b/melos.yaml index 798b8843..2feb7757 100644 --- a/melos.yaml +++ b/melos.yaml @@ -39,6 +39,7 @@ scripts: exec: dart pub outdated update-version: + description: Updates the version.dart file for each packages except yet_another_json_isolate run: | # Loop through the packages directory for d in packages/*/ ; do @@ -53,4 +54,4 @@ scripts: rm packages/yet_another_json_isolate/lib/src/version.dart # Stage the version.dart file change git add packages/*/lib/src/version.dart - description: Updates the version.dart file for each packages except yet_another_json_isolate + \ No newline at end of file