Skip to content

Commit 7fa041b

Browse files
committed
Added coverage action
1 parent fa12b7b commit 7fa041b

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/flutter_test.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
workflow_call:
88

99
concurrency:
10-
group: ${{ github.head_ref }}
10+
group: ${{ github.head_ref || github.run_id}}
1111
cancel-in-progress: true
1212

1313
jobs:
@@ -93,11 +93,19 @@ jobs:
9393
run: flutter pub run build_runner build
9494
- name: Run analyzer
9595
run: flutter analyze
96+
- name: Install coverage tools
97+
run: flutter pub global activate coverage
9698
- name: Run tests
9799
run: flutter test
98100
- name: Run integration tests
99101
if: ${{ steps.extract_branch.outputs.branch == 'dev' }}
100-
run: flutter test integration_test -d macos
102+
run: flutter test integration_test --coverage -d macos
103+
- name: Upload Coverage to CodeCov
104+
if: ${{ steps.extract_branch.outputs.branch == 'dev' }}
105+
uses: codecov/codecov-action@v3
106+
with:
107+
token: ${{secrets.CODECOV_TOKEN}}
108+
file: coverage/lcov.info
101109

102110
android-linux-build:
103111
name: 'Build Android + Linux'

0 commit comments

Comments
 (0)