Skip to content

Commit

Permalink
Update workflow to format and upload the report
Browse files Browse the repository at this point in the history
  • Loading branch information
dshukertjr committed Jan 19, 2025
1 parent f072634 commit 95d7c06
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 18 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/functions_client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/gotrue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/postgrest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/realtime_client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/storage_client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/supabase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/yet_another_json_isolate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 0 additions & 10 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 95d7c06

Please sign in to comment.