Skip to content

Commit

Permalink
Update dart.yml to include code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevertus authored Nov 27, 2023
1 parent f91191d commit cb55242
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,11 @@ jobs:
- name: Install dependencies
run: dart pub get
- name: Run tests
run: dart run test
run: pub run test --coverage="coverage"
- name: Convert coverage to ICOV
run: pub run coverage:format_coverage --lcov --in=coverage --out=coverage.lcov --packages=.packages --report-on=lib
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
file: coverage.lcov

0 comments on commit cb55242

Please sign in to comment.