Skip to content

Commit be670ef

Browse files
authored
.
1 parent 2a1737e commit be670ef

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/dart.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,13 @@ jobs:
4242
# package:test for this step to succeed. Note that Flutter projects will
4343
# want to change this to 'flutter test'.
4444
- name: Run tests
45-
run: dart test
45+
run: dart test --coverage="coverage"
46+
47+
- name: Prepare coverage
48+
run: pub run coverage:format_coverage --lcov --in=coverage --out=lcov.info --packages=.packages --report-on=lib
49+
50+
- name: Upload coverage
51+
uses: coverallsapp/github-action@v1.1.2
52+
with:
53+
github-token: ${{ secrets.GITHUB_TOKEN }}
54+
path-to-lcov: lcov.info

0 commit comments

Comments
 (0)