Coverage #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Coverage | |
on: | |
workflow_dispatch: | |
jobs: | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
- name: Run tests for async_phase | |
run: | | |
dart pub get | |
dart pub global activate coverage | |
dart run coverage:test_with_coverage | |
working-directory: packages/async_phase | |
- name: Run tests for async_phase_notifier | |
run: | | |
flutter pub get | |
flutter test --coverage | |
working-directory: packages/async_phase_notifier | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 |