Skip to content

Commit

Permalink
Push codecoverage on each PR or commit
Browse files Browse the repository at this point in the history
  • Loading branch information
git-elliot committed Sep 2, 2023
1 parent ad834ec commit 5cc5ace
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,16 @@ jobs:
# package:test for this step to succeed. Note that Flutter projects will
# want to change this to 'flutter test'.
- name: Run tests
run: dart test
run: dart test --coverage="coverage"

- name: Install coverage tools
run: dart pub global activate coverage

- name: Format Coverage
run: $HOME/.pub-cache/bin/format_coverage --lcov --in=coverage --out=coverage/coverage.lcov --report-on=lib

- name: Upload Coverage to CodeCov
uses: codecov/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}
file: coverage/coverage.lcov

0 comments on commit 5cc5ace

Please sign in to comment.