Skip to content

Commit 28965ee

Browse files
authored
chore: publish code coverage report (#971)
1 parent 43fd18a commit 28965ee

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
# Fast fail the script on failures.
4+
set -e
5+
6+
flutter pub global run remove_from_coverage:remove_from_coverage -f coverage/lcov.info -r '\.g\.dart$' -r '\.freezed\.dart$'

.github/workflows/stream_video_flutter_workflow.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
- name: Install Tools
4545
run: |
4646
flutter pub global activate melos
47+
flutter pub global activate remove_from_coverage
4748
4849
- name: Bootstrap Workspace
4950
run: melos postclean
@@ -65,6 +66,17 @@ jobs:
6566
run: |
6667
melos run format:verify
6768
69+
## Test and coverage reporting
70+
- name: "Flutter Test"
71+
run: melos run test:all
72+
- name: "Collect Coverage"
73+
run: melos run coverage:ignore-file --no-select
74+
- name: "Upload Coverage"
75+
uses: codecov/codecov-action@v5
76+
with:
77+
token: ${{secrets.CODECOV_TOKEN}}
78+
files: packages/*/coverage/lcov.info
79+
6880
build:
6981
timeout-minutes: 30
7082
runs-on: ubuntu-latest

packages/stream_video_flutter/example/test/widget_test.dart

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)