Skip to content

Commit

Permalink
CI: use flutter_tools for collecting coverage
Browse files Browse the repository at this point in the history
This fixes the CI from hanging and matches the other Dart libraries.
  • Loading branch information
robert-ancell committed May 16, 2022
1 parent c879078 commit b139553
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,24 @@ jobs:
run: dart pub get

- name: Run regression tests
run: dart run test_cov
run: dart test

coverage:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2

- uses: subosito/flutter-action@v2

- name: Print Flutter SDK version
run: flutter --version

- name: Install dependencies
run: flutter pub get

- name: Collect coverage
run: flutter test --coverage

- name: Upload coverage
uses: codecov/codecov-action@v1
Expand Down

0 comments on commit b139553

Please sign in to comment.