Skip to content

Commit c2c75a2

Browse files
committed
revert changes
1 parent 23f2237 commit c2c75a2

File tree

1 file changed

+113
-118
lines changed

1 file changed

+113
-118
lines changed

.github/workflows/dargon2_flutter_tests.yml

Lines changed: 113 additions & 118 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ defaults:
1212

1313
jobs:
1414
test_android:
15-
runs-on: macos-14
15+
runs-on: macos-latest
1616
steps:
1717
- name: Checkout
1818
uses: actions/checkout@v4
@@ -62,127 +62,122 @@ jobs:
6262
- name: Run Integration Tests
6363
uses: ReactiveCircus/[email protected]
6464
with:
65-
api-level: 34
65+
api-level: 33
6666
target: google_apis
67-
arch: arm64-v8a
6867
working-directory: dargon2_flutter/dargon2_flutter/example
6968
script: flutter test integration_test/
70-
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -engine qemu2
71-
pre-emulator-launch-script: |
72-
codesign -s - --entitlements ../../dargon2_flutter_mobile/Android/qemu-entitlements.xml --force /Users/runner/Library/Android/sdk/emulator/qemu/darwin-aarch64/qemu-system-aarch64-headless
73-
find /Users/runner/Library/Android/sdk/emulator | grep qemu
7469

75-
# test_ios:
76-
# runs-on: macos-14
77-
# steps:
78-
# - name: Checkout
79-
# uses: actions/checkout@v4
80-
# with:
81-
# submodules: recursive
82-
# - name: Download Flutter
83-
# uses: subosito/flutter-action@v2
84-
# with:
85-
# channel: 'stable'
86-
# cache: true
87-
# - name: Upgrade flutter
88-
# run: flutter upgrade
89-
# - name: List Simulators
90-
# run: xcrun simctl list devices
91-
# - name: Start Simulator
92-
# run: |
93-
# UDID=$(
94-
# xcrun simctl list devices | grep "iPhone 15 (" | awk -F"[()]" '{print $2}' | awk 'NR==1{print $1}'
95-
# )
96-
# xcrun simctl boot "${UDID:?No Simulator with this name found}"
97-
# - name: Use Test Pubspec Files
98-
# run: |
99-
# rm ../pubspec.yaml
100-
# rm ../../dargon2_flutter_web/pubspec.yaml
101-
# rm ../../dargon2_flutter_mobile/pubspec.yaml
102-
# rm ../../dargon2_flutter_desktop/pubspec.yaml
103-
# rm ../../dargon2_flutter_platform_interface/pubspec.yaml
104-
# rm ../../../dargon2_core/pubspec.yaml
105-
# mv ../pubspec.test.yaml ../pubspec.yaml
106-
# mv ../../dargon2_flutter_web/pubspec.test.yaml ../../dargon2_flutter_web/pubspec.yaml
107-
# mv ../../dargon2_flutter_mobile/pubspec.test.yaml ../../dargon2_flutter_mobile/pubspec.yaml
108-
# mv ../../dargon2_flutter_desktop/pubspec.test.yaml ../../dargon2_flutter_desktop/pubspec.yaml
109-
# mv ../../dargon2_flutter_platform_interface/pubspec.test.yaml ../../dargon2_flutter_platform_interface/pubspec.yaml
110-
# mv ../../../dargon2_core/pubspec.test.yaml ../../../dargon2_core/pubspec.yaml
111-
# - name: Run Integration Tests
112-
# run: flutter test integration_test/
70+
test_ios:
71+
runs-on: macos-14
72+
steps:
73+
- name: Checkout
74+
uses: actions/checkout@v4
75+
with:
76+
submodules: recursive
77+
- name: Download Flutter
78+
uses: subosito/flutter-action@v2
79+
with:
80+
channel: 'stable'
81+
cache: true
82+
- name: Upgrade flutter
83+
run: flutter upgrade
84+
- name: List Simulators
85+
run: xcrun simctl list devices
86+
- name: Start Simulator
87+
run: |
88+
UDID=$(
89+
xcrun simctl list devices | grep "iPhone 15 (" | awk -F"[()]" '{print $2}' | awk 'NR==1{print $1}'
90+
)
91+
xcrun simctl boot "${UDID:?No Simulator with this name found}"
92+
- name: Use Test Pubspec Files
93+
run: |
94+
rm ../pubspec.yaml
95+
rm ../../dargon2_flutter_web/pubspec.yaml
96+
rm ../../dargon2_flutter_mobile/pubspec.yaml
97+
rm ../../dargon2_flutter_desktop/pubspec.yaml
98+
rm ../../dargon2_flutter_platform_interface/pubspec.yaml
99+
rm ../../../dargon2_core/pubspec.yaml
100+
mv ../pubspec.test.yaml ../pubspec.yaml
101+
mv ../../dargon2_flutter_web/pubspec.test.yaml ../../dargon2_flutter_web/pubspec.yaml
102+
mv ../../dargon2_flutter_mobile/pubspec.test.yaml ../../dargon2_flutter_mobile/pubspec.yaml
103+
mv ../../dargon2_flutter_desktop/pubspec.test.yaml ../../dargon2_flutter_desktop/pubspec.yaml
104+
mv ../../dargon2_flutter_platform_interface/pubspec.test.yaml ../../dargon2_flutter_platform_interface/pubspec.yaml
105+
mv ../../../dargon2_core/pubspec.test.yaml ../../../dargon2_core/pubspec.yaml
106+
- name: Run Integration Tests
107+
run: flutter test integration_test/
113108

114-
# test_web:
115-
# runs-on: ubuntu-20.04
116-
# steps:
117-
# - uses: actions/checkout@v4
118-
# - uses: subosito/flutter-action@v2
119-
# - name: Use Test Pubspec Files
120-
# run: |
121-
# rm ../pubspec.yaml
122-
# rm ../../dargon2_flutter_web/pubspec.yaml
123-
# rm ../../dargon2_flutter_mobile/pubspec.yaml
124-
# rm ../../dargon2_flutter_desktop/pubspec.yaml
125-
# rm ../../dargon2_flutter_platform_interface/pubspec.yaml
126-
# rm ../../../dargon2_core/pubspec.yaml
127-
# mv ../pubspec.test.yaml ../pubspec.yaml
128-
# mv ../../dargon2_flutter_web/pubspec.test.yaml ../../dargon2_flutter_web/pubspec.yaml
129-
# mv ../../dargon2_flutter_mobile/pubspec.test.yaml ../../dargon2_flutter_mobile/pubspec.yaml
130-
# mv ../../dargon2_flutter_desktop/pubspec.test.yaml ../../dargon2_flutter_desktop/pubspec.yaml
131-
# mv ../../dargon2_flutter_platform_interface/pubspec.test.yaml ../../dargon2_flutter_platform_interface/pubspec.yaml
132-
# mv ../../../dargon2_core/pubspec.test.yaml ../../../dargon2_core/pubspec.yaml
133-
# - run: flutter pub get
134-
# - run: chromedriver --port=4444 &
135-
# - run: flutter drive --driver=test_driver/integration_test.dart --target=integration_test/argon2_ffi_test.dart -d web-server
109+
test_web:
110+
runs-on: ubuntu-20.04
111+
steps:
112+
- uses: actions/checkout@v4
113+
- uses: subosito/flutter-action@v2
114+
- name: Use Test Pubspec Files
115+
run: |
116+
rm ../pubspec.yaml
117+
rm ../../dargon2_flutter_web/pubspec.yaml
118+
rm ../../dargon2_flutter_mobile/pubspec.yaml
119+
rm ../../dargon2_flutter_desktop/pubspec.yaml
120+
rm ../../dargon2_flutter_platform_interface/pubspec.yaml
121+
rm ../../../dargon2_core/pubspec.yaml
122+
mv ../pubspec.test.yaml ../pubspec.yaml
123+
mv ../../dargon2_flutter_web/pubspec.test.yaml ../../dargon2_flutter_web/pubspec.yaml
124+
mv ../../dargon2_flutter_mobile/pubspec.test.yaml ../../dargon2_flutter_mobile/pubspec.yaml
125+
mv ../../dargon2_flutter_desktop/pubspec.test.yaml ../../dargon2_flutter_desktop/pubspec.yaml
126+
mv ../../dargon2_flutter_platform_interface/pubspec.test.yaml ../../dargon2_flutter_platform_interface/pubspec.yaml
127+
mv ../../../dargon2_core/pubspec.test.yaml ../../../dargon2_core/pubspec.yaml
128+
- run: flutter pub get
129+
- run: chromedriver --port=4444 &
130+
- run: flutter drive --driver=test_driver/integration_test.dart --target=integration_test/argon2_ffi_test.dart -d web-server
136131

137-
# test_desktop:
138-
# runs-on: ${{ matrix.os }}
139-
# strategy:
140-
# fail-fast: false
141-
# matrix:
142-
# os: [ windows-latest ]
143-
# include:
144-
# # - os: macos-latest
145-
# # FLUTTER_DEVICE: macos
146-
# # FLUTTER_CHANNEL: stable
147-
# # - os: ubuntu-latest
148-
# # FLUTTER_DEVICE: linux
149-
# # FLUTTER_CHANNEL: beta
150-
# - os: windows-latest
151-
# FLUTTER_DEVICE: windows
152-
# FLUTTER_CHANNEL: stable
153-
# steps:
154-
# - name: Checkout
155-
# uses: actions/checkout@v4
156-
# with:
157-
# submodules: recursive
158-
# - name: Download Flutter
159-
# uses: subosito/flutter-action@v2
160-
# with:
161-
# channel: ${{ matrix.FLUTTER_CHANNEL }}
162-
# cache: true
163-
# cache-key: ${{ matrix.FLUTTER_CHANNEL }}
164-
# - name: Enable Flutter Desktop
165-
# run: |
166-
# flutter config --enable-linux-desktop
167-
# flutter config --enable-macos-desktop
168-
# flutter config --enable-windows-desktop
169-
# - if: matrix.os == 'ubuntu-latest'
170-
# name: Install Ninja (Ubuntu Only)
171-
# run: sudo apt install -y ninja-build libgtk-3-dev clang
172-
# - name: Use Test Pubspec Files
173-
# run: |
174-
# rm ../pubspec.yaml
175-
# rm ../../dargon2_flutter_web/pubspec.yaml
176-
# rm ../../dargon2_flutter_mobile/pubspec.yaml
177-
# rm ../../dargon2_flutter_desktop/pubspec.yaml
178-
# rm ../../dargon2_flutter_platform_interface/pubspec.yaml
179-
# rm ../../../dargon2_core/pubspec.yaml
180-
# mv ../pubspec.test.yaml ../pubspec.yaml
181-
# mv ../../dargon2_flutter_web/pubspec.test.yaml ../../dargon2_flutter_web/pubspec.yaml
182-
# mv ../../dargon2_flutter_mobile/pubspec.test.yaml ../../dargon2_flutter_mobile/pubspec.yaml
183-
# mv ../../dargon2_flutter_desktop/pubspec.test.yaml ../../dargon2_flutter_desktop/pubspec.yaml
184-
# mv ../../dargon2_flutter_platform_interface/pubspec.test.yaml ../../dargon2_flutter_platform_interface/pubspec.yaml
185-
# mv ../../../dargon2_core/pubspec.test.yaml ../../../dargon2_core/pubspec.yaml
186-
# - name: Run Integration Tests
187-
# run: flutter test -d ${{ matrix.FLUTTER_DEVICE }} integration_test/
132+
test_desktop:
133+
runs-on: ${{ matrix.os }}
134+
strategy:
135+
fail-fast: false
136+
matrix:
137+
os: [ windows-latest ]
138+
include:
139+
# - os: macos-latest
140+
# FLUTTER_DEVICE: macos
141+
# FLUTTER_CHANNEL: stable
142+
# - os: ubuntu-latest
143+
# FLUTTER_DEVICE: linux
144+
# FLUTTER_CHANNEL: beta
145+
- os: windows-latest
146+
FLUTTER_DEVICE: windows
147+
FLUTTER_CHANNEL: stable
148+
steps:
149+
- name: Checkout
150+
uses: actions/checkout@v4
151+
with:
152+
submodules: recursive
153+
- name: Download Flutter
154+
uses: subosito/flutter-action@v2
155+
with:
156+
channel: ${{ matrix.FLUTTER_CHANNEL }}
157+
cache: true
158+
cache-key: ${{ matrix.FLUTTER_CHANNEL }}
159+
- name: Enable Flutter Desktop
160+
run: |
161+
flutter config --enable-linux-desktop
162+
flutter config --enable-macos-desktop
163+
flutter config --enable-windows-desktop
164+
- if: matrix.os == 'ubuntu-latest'
165+
name: Install Ninja (Ubuntu Only)
166+
run: sudo apt install -y ninja-build libgtk-3-dev clang
167+
- name: Use Test Pubspec Files
168+
run: |
169+
rm ../pubspec.yaml
170+
rm ../../dargon2_flutter_web/pubspec.yaml
171+
rm ../../dargon2_flutter_mobile/pubspec.yaml
172+
rm ../../dargon2_flutter_desktop/pubspec.yaml
173+
rm ../../dargon2_flutter_platform_interface/pubspec.yaml
174+
rm ../../../dargon2_core/pubspec.yaml
175+
mv ../pubspec.test.yaml ../pubspec.yaml
176+
mv ../../dargon2_flutter_web/pubspec.test.yaml ../../dargon2_flutter_web/pubspec.yaml
177+
mv ../../dargon2_flutter_mobile/pubspec.test.yaml ../../dargon2_flutter_mobile/pubspec.yaml
178+
mv ../../dargon2_flutter_desktop/pubspec.test.yaml ../../dargon2_flutter_desktop/pubspec.yaml
179+
mv ../../dargon2_flutter_platform_interface/pubspec.test.yaml ../../dargon2_flutter_platform_interface/pubspec.yaml
180+
mv ../../../dargon2_core/pubspec.test.yaml ../../../dargon2_core/pubspec.yaml
181+
- name: Run Integration Tests
182+
run: flutter test -d ${{ matrix.FLUTTER_DEVICE }} integration_test/
188183

0 commit comments

Comments
 (0)