-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (71 loc) · 2.52 KB
/
pull_request.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
62
63
64
65
66
67
68
69
70
71
name: pull_request
on: pull_request
jobs:
lint-unit-test:
name: Lint + Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: kuhnroyal/flutter-fvm-config-action@v1
id: fvm-config-action
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
# the arb files aren't under source control, generate them
- name: Generate arb files
run: dart run arb_generator
- name: Install packages
run: flutter pub get
- name: Lint
run: flutter analyze
- name: Unit tests
run: flutter test
build-Android:
name: Build Android
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: kuhnroyal/flutter-fvm-config-action@v1
id: fvm-config-action
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
# the arb files aren't under source control, generate them
- name: Generate arb files
run: dart run arb_generator
- name: Build apk
run: flutter build apk --release --split-per-abi
build-iOS:
name: Build iOS
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- uses: kuhnroyal/flutter-fvm-config-action@v1
id: fvm-config-action
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
# the arb files aren't under source control, generate them
- name: Generate arb files
run: dart run arb_generator
- name: Build ipa
run: flutter build ios --release --no-codesign
build-web:
name: Build Web
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: kuhnroyal/flutter-fvm-config-action@v1
id: fvm-config-action
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
# the arb files aren't under source control, generate them
- name: Generate arb files
run: dart run arb_generator
- name: Build web
run: flutter build web --release