-
Notifications
You must be signed in to change notification settings - Fork 17
79 lines (62 loc) · 2.08 KB
/
stripe_terminal_integration.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
72
73
74
75
76
77
78
79
name: Integration StripeTerminal
on:
pull_request:
paths: [ 'stripe_terminal/**', 'one_for_all/**' ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
integration:
runs-on: ubuntu-latest
timeout-minutes: 5
defaults:
run:
working-directory: stripe_terminal
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.16.x'
- name: Resolve dependencies
run: flutter pub get
timeout-minutes: 2
- name: Check code formatting
run: >-
dart format --line-length 100 --set-exit-if-changed --output none
$(find . ! -path "./.dart_tool/**" ! -path "./build/**" -name "*.dart" ! -name "*.g.dart")
- name: Analyze code
run: flutter analyze --no-fatal-infos
# Android
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'zulu'
- run: ./gradlew spotlessCheck
working-directory: stripe_terminal/android
- run: ./gradlew :mek_stripe_terminal:assemble --project-dir ../example/android
working-directory: stripe_terminal/android
integration-example:
runs-on: macos-latest
timeout-minutes: 5
defaults:
run:
working-directory: stripe_terminal/example
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.16.x'
- name: Resolve dependencies
run: flutter pub get --enforce-lockfile
timeout-minutes: 2
- name: Check code formatting
run: >-
dart format --line-length 100 --set-exit-if-changed --output none
$(find . ! -path "./.dart_tool/**" ! -path "./build/**" -name "*.dart" ! -name "*.g.dart")
- name: Analyze code
run: flutter analyze --no-fatal-infos
# IOS
- uses: maxim-lobanov/setup-cocoapods@v1
with:
podfile-path: stripe_terminal/example/ios/Podfile.lock
- run: pod install --deployment --project-directory=ios