forked from flutter-stripe/flutter_stripe
-
Notifications
You must be signed in to change notification settings - Fork 0
134 lines (110 loc) · 3.37 KB
/
Copy pathall_plugins.yaml
File metadata and controls
134 lines (110 loc) · 3.37 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
name: all_plugins
on:
push:
branches: [master]
paths-ignore:
- "docs/**"
- "website/**"
- "**.md"
pull_request:
branches: ['**']
paths-ignore:
- "docs/**"
- "website/**"
- "**.md"
jobs:
analyze:
name: analyze
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: "Install Tools"
run: |
./.github/workflows/scripts/install-tools.sh
- name: "Bootstrap Workspace"
run: melos bootstrap
- name: "Set env keys"
env:
STRIPE_PUBLISHABLE_KEY: ${{ secrets.STRIPE_PUBLISHABLE_KEY }}
run: |
./.github/workflows/scripts/env-files.sh
- name: "Run Analyze"
run: melos run analyze
- name: "Pub Check"
run: |
melos exec -c 1 --no-private --ignore="*example*" -- \
flutter pub publish --dry-run
test:
name: test
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: "Install Tools"
run: |
./.github/workflows/scripts/install-tools.sh
- name: "Bootstrap Workspace"
run: melos bootstrap
- name: "Set env keys"
env:
STRIPE_PUBLISHABLE_KEY: ${{ secrets.STRIPE_PUBLISHABLE_KEY }}
STRIPE_SECRET_KEY: ${{ secrets.STRIPE_SECRET_KEY }}
run: |
./.github/workflows/scripts/env-files.sh
- name: "Run unittest"
run: melos run unittest
integration_test:
name: Integration test
timeout-minutes: 30
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Set up Java version
uses: actions/setup-java@v1
with:
java-version: '11'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: "Install Tools"
run: |
./.github/workflows/scripts/install-tools.sh
- name: "Bootstrap Workspace"
run: melos bootstrap
- name: "Set env keys"
env:
STRIPE_PUBLISHABLE_KEY: ${{ secrets.STRIPE_PUBLISHABLE_KEY }}
STRIPE_SECRET_KEY: ${{ secrets.STRIPE_SECRET_KEY }}
run: |
./.github/workflows/scripts/env-files.sh
- name: "Start dev server"
working-directory: example/server
run: npm install && (npm run start:dev &)
- name: "Set IP address"
working-directory: example
run: echo "const kApiUrl='''$(ifconfig | grep 'inet ' | grep -v '127.0.0.1' | awk '{print $2}')''';" > integration_test/ip.dart
- name: "Print ip.dart"
working-directory: example
run: cat integration_test/ip.dart
- name: "Run integration test Android"
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
working-directory: example
script: |
sleep 15;
flutter drive --driver test_driver/integration_test.dart --target=integration_test/run_all_tests.dart;
cd android && ./gradlew :app:connectedDebugAndroidTest;
- name: "Start iOS Simulator"
run: |
xcrun simctl boot "iPhone 13 mini"
- name: "Run Flutter Driver tests on iOS"
working-directory: example
run: "flutter drive --driver test_driver/integration_test.dart --target=integration_test/run_all_tests.dart"