38
38
cache : true
39
39
- name : Upgrade flutter
40
40
run : flutter upgrade
41
+ - name : Use Test Pubspec Files
42
+ run : |
43
+ rm ../pubspec.yaml
44
+ rm ../../dargon2_flutter_web/pubspec.yaml
45
+ rm ../../dargon2_flutter_mobile/pubspec.yaml
46
+ rm ../../dargon2_flutter_desktop/pubspec.yaml
47
+ rm ../../dargon2_flutter_platform_interface/pubspec.yaml
48
+ rm ../../../dargon2_core/pubspec.yaml
49
+ mv ../pubspec.test.yaml ../pubspec.yaml
50
+ mv ../../dargon2_flutter_web/pubspec.test.yaml ../../dargon2_flutter_web/pubspec.yaml
51
+ mv ../../dargon2_flutter_mobile/pubspec.test.yaml ../../dargon2_flutter_mobile/pubspec.yaml
52
+ mv ../../dargon2_flutter_desktop/pubspec.test.yaml ../../dargon2_flutter_desktop/pubspec.yaml
53
+ mv ../../dargon2_flutter_platform_interface/pubspec.test.yaml ../../dargon2_flutter_platform_interface/pubspec.yaml
54
+ mv ../../../dargon2_core/pubspec.test.yaml ../../../dargon2_core/pubspec.yaml
41
55
- name : Run Integration Tests
42
56
uses :
reactivecircus/[email protected]
43
57
with :
68
82
xcrun simctl list devices | grep "iPhone 13 (" | awk -F"[()]" '{print $2}' | awk 'NR==1{print $1}'
69
83
)
70
84
xcrun simctl boot "${UDID:?No Simulator with this name found}"
85
+ - name : Use Test Pubspec Files
86
+ run : |
87
+ rm ../pubspec.yaml
88
+ rm ../../dargon2_flutter_web/pubspec.yaml
89
+ rm ../../dargon2_flutter_mobile/pubspec.yaml
90
+ rm ../../dargon2_flutter_desktop/pubspec.yaml
91
+ rm ../../dargon2_flutter_platform_interface/pubspec.yaml
92
+ rm ../../../dargon2_core/pubspec.yaml
93
+ mv ../pubspec.test.yaml ../pubspec.yaml
94
+ mv ../../dargon2_flutter_web/pubspec.test.yaml ../../dargon2_flutter_web/pubspec.yaml
95
+ mv ../../dargon2_flutter_mobile/pubspec.test.yaml ../../dargon2_flutter_mobile/pubspec.yaml
96
+ mv ../../dargon2_flutter_desktop/pubspec.test.yaml ../../dargon2_flutter_desktop/pubspec.yaml
97
+ mv ../../dargon2_flutter_platform_interface/pubspec.test.yaml ../../dargon2_flutter_platform_interface/pubspec.yaml
98
+ mv ../../../dargon2_core/pubspec.test.yaml ../../../dargon2_core/pubspec.yaml
71
99
- name : Run Integration Tests
72
100
run : flutter test integration_test/
73
101
@@ -76,6 +104,20 @@ jobs:
76
104
steps :
77
105
- uses : actions/checkout@v2
78
106
- uses : subosito/flutter-action@v2
107
+ - name : Use Test Pubspec Files
108
+ run : |
109
+ rm ../pubspec.yaml
110
+ rm ../../dargon2_flutter_web/pubspec.yaml
111
+ rm ../../dargon2_flutter_mobile/pubspec.yaml
112
+ rm ../../dargon2_flutter_desktop/pubspec.yaml
113
+ rm ../../dargon2_flutter_platform_interface/pubspec.yaml
114
+ rm ../../../dargon2_core/pubspec.yaml
115
+ mv ../pubspec.test.yaml ../pubspec.yaml
116
+ mv ../../dargon2_flutter_web/pubspec.test.yaml ../../dargon2_flutter_web/pubspec.yaml
117
+ mv ../../dargon2_flutter_mobile/pubspec.test.yaml ../../dargon2_flutter_mobile/pubspec.yaml
118
+ mv ../../dargon2_flutter_desktop/pubspec.test.yaml ../../dargon2_flutter_desktop/pubspec.yaml
119
+ mv ../../dargon2_flutter_platform_interface/pubspec.test.yaml ../../dargon2_flutter_platform_interface/pubspec.yaml
120
+ mv ../../../dargon2_core/pubspec.test.yaml ../../../dargon2_core/pubspec.yaml
79
121
- run : flutter pub get
80
122
- run : chromedriver --port=4444 &
81
123
- run : flutter drive --driver=test_driver/integration_test.dart --target=integration_test/argon2_ffi_test.dart -d web-server
@@ -115,6 +157,20 @@ jobs:
115
157
- if : matrix.os == 'ubuntu-latest'
116
158
name : Install Ninja (Ubuntu Only)
117
159
run : sudo apt install -y ninja-build libgtk-3-dev clang
160
+ - name : Use Test Pubspec Files
161
+ run : |
162
+ rm ../pubspec.yaml
163
+ rm ../../dargon2_flutter_web/pubspec.yaml
164
+ rm ../../dargon2_flutter_mobile/pubspec.yaml
165
+ rm ../../dargon2_flutter_desktop/pubspec.yaml
166
+ rm ../../dargon2_flutter_platform_interface/pubspec.yaml
167
+ rm ../../../dargon2_core/pubspec.yaml
168
+ mv ../pubspec.test.yaml ../pubspec.yaml
169
+ mv ../../dargon2_flutter_web/pubspec.test.yaml ../../dargon2_flutter_web/pubspec.yaml
170
+ mv ../../dargon2_flutter_mobile/pubspec.test.yaml ../../dargon2_flutter_mobile/pubspec.yaml
171
+ mv ../../dargon2_flutter_desktop/pubspec.test.yaml ../../dargon2_flutter_desktop/pubspec.yaml
172
+ mv ../../dargon2_flutter_platform_interface/pubspec.test.yaml ../../dargon2_flutter_platform_interface/pubspec.yaml
173
+ mv ../../../dargon2_core/pubspec.test.yaml ../../../dargon2_core/pubspec.yaml
118
174
- name : Run Integration Tests
119
175
run : flutter test -d ${{ matrix.FLUTTER_DEVICE }} integration_test/
120
176
0 commit comments