Skip to content

Commit 4ab7454

Browse files
authored
Add file deletion
1 parent b0313f4 commit 4ab7454

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/dargon2_flutter_tests.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,19 @@ 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 ../../dargon2_flutter_web/pubspec.test.yaml ../../dargon2_flutter_web/pubspec.yaml
50+
mv ../../dargon2_flutter_mobile/pubspec.test.yaml ../../dargon2_flutter_mobile/pubspec.yaml
51+
mv ../../dargon2_flutter_desktop/pubspec.test.yaml ../../dargon2_flutter_desktop/pubspec.yaml
52+
mv ../../dargon2_flutter_platform_interface/pubspec.test.yaml ../../dargon2_flutter_platform_interface/pubspec.yaml
53+
mv ../../../dargon2_core/pubspec.test.yaml ../../../dargon2_core/pubspec.yaml
4154
- name: Run Integration Tests
4255
uses: reactivecircus/[email protected]
4356
with:
@@ -68,6 +81,19 @@ jobs:
6881
xcrun simctl list devices | grep "iPhone 13 (" | awk -F"[()]" '{print $2}' | awk 'NR==1{print $1}'
6982
)
7083
xcrun simctl boot "${UDID:?No Simulator with this name found}"
84+
- name: Use Test Pubspec Files
85+
run: |
86+
rm ../pubspec.yaml
87+
rm ../../dargon2_flutter_web/pubspec.yaml
88+
rm ../../dargon2_flutter_mobile/pubspec.yaml
89+
rm ../../dargon2_flutter_desktop/pubspec.yaml
90+
rm ../../dargon2_flutter_platform_interface/pubspec.yaml
91+
rm ../../../dargon2_core/pubspec.yaml
92+
mv ../../dargon2_flutter_web/pubspec.test.yaml ../../dargon2_flutter_web/pubspec.yaml
93+
mv ../../dargon2_flutter_mobile/pubspec.test.yaml ../../dargon2_flutter_mobile/pubspec.yaml
94+
mv ../../dargon2_flutter_desktop/pubspec.test.yaml ../../dargon2_flutter_desktop/pubspec.yaml
95+
mv ../../dargon2_flutter_platform_interface/pubspec.test.yaml ../../dargon2_flutter_platform_interface/pubspec.yaml
96+
mv ../../../dargon2_core/pubspec.test.yaml ../../../dargon2_core/pubspec.yaml
7197
- name: Run Integration Tests
7298
run: flutter test integration_test/
7399

@@ -76,6 +102,19 @@ jobs:
76102
steps:
77103
- uses: actions/checkout@v2
78104
- uses: subosito/flutter-action@v2
105+
- name: Use Test Pubspec Files
106+
run: |
107+
rm ../pubspec.yaml
108+
rm ../../dargon2_flutter_web/pubspec.yaml
109+
rm ../../dargon2_flutter_mobile/pubspec.yaml
110+
rm ../../dargon2_flutter_desktop/pubspec.yaml
111+
rm ../../dargon2_flutter_platform_interface/pubspec.yaml
112+
rm ../../../dargon2_core/pubspec.yaml
113+
mv ../../dargon2_flutter_web/pubspec.test.yaml ../../dargon2_flutter_web/pubspec.yaml
114+
mv ../../dargon2_flutter_mobile/pubspec.test.yaml ../../dargon2_flutter_mobile/pubspec.yaml
115+
mv ../../dargon2_flutter_desktop/pubspec.test.yaml ../../dargon2_flutter_desktop/pubspec.yaml
116+
mv ../../dargon2_flutter_platform_interface/pubspec.test.yaml ../../dargon2_flutter_platform_interface/pubspec.yaml
117+
mv ../../../dargon2_core/pubspec.test.yaml ../../../dargon2_core/pubspec.yaml
79118
- run: flutter pub get
80119
- run: chromedriver --port=4444 &
81120
- run: flutter drive --driver=test_driver/integration_test.dart --target=integration_test/argon2_ffi_test.dart -d web-server
@@ -115,6 +154,19 @@ jobs:
115154
- if: matrix.os == 'ubuntu-latest'
116155
name: Install Ninja (Ubuntu Only)
117156
run: sudo apt install -y ninja-build libgtk-3-dev clang
157+
- name: Use Test Pubspec Files
158+
run: |
159+
rm ../pubspec.yaml
160+
rm ../../dargon2_flutter_web/pubspec.yaml
161+
rm ../../dargon2_flutter_mobile/pubspec.yaml
162+
rm ../../dargon2_flutter_desktop/pubspec.yaml
163+
rm ../../dargon2_flutter_platform_interface/pubspec.yaml
164+
rm ../../../dargon2_core/pubspec.yaml
165+
mv ../../dargon2_flutter_web/pubspec.test.yaml ../../dargon2_flutter_web/pubspec.yaml
166+
mv ../../dargon2_flutter_mobile/pubspec.test.yaml ../../dargon2_flutter_mobile/pubspec.yaml
167+
mv ../../dargon2_flutter_desktop/pubspec.test.yaml ../../dargon2_flutter_desktop/pubspec.yaml
168+
mv ../../dargon2_flutter_platform_interface/pubspec.test.yaml ../../dargon2_flutter_platform_interface/pubspec.yaml
169+
mv ../../../dargon2_core/pubspec.test.yaml ../../../dargon2_core/pubspec.yaml
118170
- name: Run Integration Tests
119171
run: flutter test -d ${{ matrix.FLUTTER_DEVICE }} integration_test/
120172

0 commit comments

Comments
 (0)