Skip to content

Commit be9da74

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 4f96223 + 196c329 commit be9da74

File tree

2 files changed

+58
-1
lines changed

2 files changed

+58
-1
lines changed

.github/workflows/dargon2_flutter_tests.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,20 @@ jobs:
3838
cache: true
3939
- name: Upgrade flutter
4040
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
4155
- name: Run Integration Tests
4256
uses: reactivecircus/[email protected]
4357
with:
@@ -68,6 +82,20 @@ jobs:
6882
xcrun simctl list devices | grep "iPhone 13 (" | awk -F"[()]" '{print $2}' | awk 'NR==1{print $1}'
6983
)
7084
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
7199
- name: Run Integration Tests
72100
run: flutter test integration_test/
73101

@@ -76,6 +104,20 @@ jobs:
76104
steps:
77105
- uses: actions/checkout@v2
78106
- 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
79121
- run: flutter pub get
80122
- run: chromedriver --port=4444 &
81123
- run: flutter drive --driver=test_driver/integration_test.dart --target=integration_test/argon2_ffi_test.dart -d web-server
@@ -115,6 +157,20 @@ jobs:
115157
- if: matrix.os == 'ubuntu-latest'
116158
name: Install Ninja (Ubuntu Only)
117159
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
118174
- name: Run Integration Tests
119175
run: flutter test -d ${{ matrix.FLUTTER_DEVICE }} integration_test/
120176

.github/workflows/dargon2_tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ jobs:
2020
- uses: dart-lang/setup-dart@v1
2121
- name: Use Test Pubspec Files
2222
run: |
23+
rm pubspec.yaml
24+
rm ../dargon2_core/pubspec.yaml
2325
mv pubspec.test.yaml pubspec.yaml
2426
mv ../dargon2_core/pubspec.test.yaml ../dargon2_core/pubspec.yaml
25-
mv ../dargon2_interface/pubspec.test.yaml ../dargon2_interface/pubspec.yaml
2627
- name: Install dependencies
2728
run: dart pub get
2829
- name: Run tests

0 commit comments

Comments
 (0)