-
-
Notifications
You must be signed in to change notification settings - Fork 12
61 lines (49 loc) · 1.43 KB
/
build.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
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
name: Build
on:
push:
pull_request:
jobs:
sanity_check:
runs-on: ubuntu-latest
strategy:
matrix:
package:
- packages/binder
# - examples/architecture
- examples/counter
# - examples/select
# - examples/todos
# - examples/undo_redo
# - examples/users_devices
channel:
- stable
- dev
- beta
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: ${{ matrix.channel }}
- name: Removing example folder
run: rm -rf example
working-directory: ${{ matrix.package }}
- name: Install dependencies
run: flutter pub get
working-directory: ${{ matrix.package }}
- name: Check format
run: flutter format --set-exit-if-changed .
working-directory: ${{ matrix.package }}
- name: Generate
run: |
if grep -q build_runner "pubspec.yaml"; then
flutter pub run build_runner build --delete-conflicting-outputs
fi
working-directory: ${{ matrix.package }}
- name: Analyze
run: flutter analyze
working-directory: ${{ matrix.package }}
- name: Run tests
run: flutter test --coverage
working-directory: ${{ matrix.package }}
- name: Upload coverage to codecov
run: curl -s https://codecov.io/bash | bash