-
Notifications
You must be signed in to change notification settings - Fork 294
36 lines (33 loc) · 1001 Bytes
/
test_coverage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: (PR) Test Coverage
on:
pull_request:
types: [ opened, synchronize, reopened ]
env:
flutter_version: '3.24.1'
flutter_channel: 'stable'
jobs:
test_coverage:
name: Test coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Flutter
uses: subosito/[email protected]
with:
flutter-version: ${{ env.flutter_version }}
channel: ${{ env.flutter_channel }}
cache: true
- name: Generate required code
run: |
flutter pub get
flutter pub run build_runner build --delete-conflicting-outputs
- name: Genarate
run: |
very_good test --test-randomize-ordering-seed random --coverage
- uses: actions/checkout@v2
- name: Very Good Coverage
uses: VeryGoodOpenSource/very_good_coverage@v2
with:
path: "./coverage/lcov.info"
min_coverage: 4
exclude: '**/*_observer.dart **/change.dart'