Skip to content

Commit 1c72944

Browse files
authored
CI: Remove explicit --packages arg to coverage (#263)
1 parent 9c2e6d3 commit 1c72944

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ jobs:
3131
- run: dart test
3232
if: matrix.sdk != 'dev' && steps.install.outcome == 'success'
3333

34-
- run: dart test --coverage coverage
35-
if: matrix.sdk == 'dev' && steps.install.outcome == 'success'
3634
- run: dart pub global activate coverage
37-
if: matrix.sdk == 'dev'
38-
- run: dart pub global run coverage:format_coverage --packages=.packages -i coverage --report-on=lib --lcov > coverage/lcov.info
39-
if: matrix.sdk == 'dev'
35+
if: matrix.sdk == 'dev' && steps.install.outcome == 'success'
36+
id: install_pkg_coverage
37+
- run: dart pub global run coverage:test_with_coverage
38+
if: matrix.sdk == 'dev' && steps.install_pkg_coverage.outcome == 'success'
39+
id: test_with_coverage
4040
- uses: coverallsapp/github-action@master
41+
if: matrix.sdk == 'dev' && steps.test_with_coverage.outcome == 'success'
4142
with:
4243
github-token: ${{ secrets.GITHUB_TOKEN }}
43-
if: matrix.sdk == 'dev'

0 commit comments

Comments
 (0)