-
Notifications
You must be signed in to change notification settings - Fork 3
64 lines (52 loc) · 1.8 KB
/
flutter_payzen_platform_interface.yaml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Test Flutter Lyra Platform Interface
on:
push:
paths:
- "flutter_lyra_platform_interface/**"
- ".github/workflows/flutter_lyra_platform_interface.yaml"
branches:
- main
pull_request:
paths:
- "flutter_lyra_platform_interface/**"
- ".github/workflows/flutter_lyra_platform_interface.yaml"
branches:
- main
jobs:
test:
strategy:
matrix: {dir: ["flutter_lyra_platform_interface"]}
runs-on: ubuntu-20.04
defaults:
run:
working-directory: ${{ matrix.dir }}
steps:
- uses: actions/checkout@v2
- id: dotenv
uses: falti/dotenv-action@v0.2.8
with:
path: .github/workflows/.env
- uses: subosito/flutter-action@v2.5.0
with:
flutter-version: ${{ steps.dotenv.outputs.flutter_version }}
channel: "stable"
cache: true
cache-key: ${{ runner.os }}-flutter-${{ steps.dotenv.outputs.flutter_version }}
cache-path: ${{ runner.tool_cache }}/flutter-${{ steps.dotenv.outputs.flutter_version }}
- name: Install Dependencies
run: flutter packages get
- name: Format
run: dart format --set-exit-if-changed lib test
- name: Analyze
run: flutter analyze lib test
- name: Run tests
run: flutter test --no-pub --coverage --test-randomize-ordering-seed random
- name: Install Remove From Coverage
run: dart pub global activate remove_from_coverage
- name: Remove from coverage generated files
run: remove_from_coverage -f coverage/lcov.info -r '\.gql\.dart$|\.g\.dart$|\.freezed\.dart$'
- name: Check Code Coverage
uses: VeryGoodOpenSource/very_good_coverage@v1.2.0
with:
path: "./${{ matrix.dir }}/coverage/lcov.info"
min_coverage: 75