Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: setup minimum test-coverage #101

Closed
wants to merge 12 commits into from
17 changes: 13 additions & 4 deletions .github/workflows/pr_run_test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: (PR) Run flutter test
name: (PR) Run flutter test coverage

on:
pull_request:
Expand All @@ -9,8 +9,8 @@ env:
flutter_channel: 'stable'

jobs:
flutter_format:
name: Flutter Tests
flutter_test_coverage:
name: Flutter Test Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -26,4 +26,13 @@ jobs:
flutter pub run build_runner build --delete-conflicting-outputs
- name: Run flutter test
run: |
flutter test
flutter test --coverage
- uses: actions/checkout@v2
- name: Very Good Coverage
uses: VeryGoodOpenSource/very_good_coverage@v2
run: |
flutter test --coverage
with:
path: "./coverage/lcov.info"
min_coverage: 4
exclude: '**/*_observer.dart **/change.dart'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ app.*.map.json

/lib/gen/

coverage/