Skip to content

Commit

Permalink
fix panic
Browse files Browse the repository at this point in the history
  • Loading branch information
qui-jason committed Mar 16, 2024
1 parent a6b0659 commit c306963
Showing 1 changed file with 112 additions and 112 deletions.
224 changes: 112 additions & 112 deletions .github/workflows/dargon2_flutter_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,121 +72,121 @@ jobs:
-camera-back none
-camera-front none
target: google_apis
arch: arm64-v8a
arch: x86_64
working-directory: dargon2_flutter/dargon2_flutter/example
script: flutter test integration_test/

test_ios:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Download Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
- name: Upgrade flutter
run: flutter upgrade
- name: List Simulators
run: xcrun simctl list devices
- name: Start Simulator
run: |
UDID=$(
xcrun simctl list devices | grep "iPhone 13 (" | awk -F"[()]" '{print $2}' | awk 'NR==1{print $1}'
)
xcrun simctl boot "${UDID:?No Simulator with this name found}"
- name: Use Test Pubspec Files
run: |
rm ../pubspec.yaml
rm ../../dargon2_flutter_web/pubspec.yaml
rm ../../dargon2_flutter_mobile/pubspec.yaml
rm ../../dargon2_flutter_desktop/pubspec.yaml
rm ../../dargon2_flutter_platform_interface/pubspec.yaml
rm ../../../dargon2_core/pubspec.yaml
mv ../pubspec.test.yaml ../pubspec.yaml
mv ../../dargon2_flutter_web/pubspec.test.yaml ../../dargon2_flutter_web/pubspec.yaml
mv ../../dargon2_flutter_mobile/pubspec.test.yaml ../../dargon2_flutter_mobile/pubspec.yaml
mv ../../dargon2_flutter_desktop/pubspec.test.yaml ../../dargon2_flutter_desktop/pubspec.yaml
mv ../../dargon2_flutter_platform_interface/pubspec.test.yaml ../../dargon2_flutter_platform_interface/pubspec.yaml
mv ../../../dargon2_core/pubspec.test.yaml ../../../dargon2_core/pubspec.yaml
- name: Run Integration Tests
run: flutter test integration_test/
# test_ios:
# runs-on: macos-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# with:
# submodules: recursive
# - name: Download Flutter
# uses: subosito/flutter-action@v2
# with:
# channel: 'stable'
# cache: true
# - name: Upgrade flutter
# run: flutter upgrade
# - name: List Simulators
# run: xcrun simctl list devices
# - name: Start Simulator
# run: |
# UDID=$(
# xcrun simctl list devices | grep "iPhone 13 (" | awk -F"[()]" '{print $2}' | awk 'NR==1{print $1}'
# )
# xcrun simctl boot "${UDID:?No Simulator with this name found}"
# - name: Use Test Pubspec Files
# run: |
# rm ../pubspec.yaml
# rm ../../dargon2_flutter_web/pubspec.yaml
# rm ../../dargon2_flutter_mobile/pubspec.yaml
# rm ../../dargon2_flutter_desktop/pubspec.yaml
# rm ../../dargon2_flutter_platform_interface/pubspec.yaml
# rm ../../../dargon2_core/pubspec.yaml
# mv ../pubspec.test.yaml ../pubspec.yaml
# mv ../../dargon2_flutter_web/pubspec.test.yaml ../../dargon2_flutter_web/pubspec.yaml
# mv ../../dargon2_flutter_mobile/pubspec.test.yaml ../../dargon2_flutter_mobile/pubspec.yaml
# mv ../../dargon2_flutter_desktop/pubspec.test.yaml ../../dargon2_flutter_desktop/pubspec.yaml
# mv ../../dargon2_flutter_platform_interface/pubspec.test.yaml ../../dargon2_flutter_platform_interface/pubspec.yaml
# mv ../../../dargon2_core/pubspec.test.yaml ../../../dargon2_core/pubspec.yaml
# - name: Run Integration Tests
# run: flutter test integration_test/

test_web:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
- name: Use Test Pubspec Files
run: |
rm ../pubspec.yaml
rm ../../dargon2_flutter_web/pubspec.yaml
rm ../../dargon2_flutter_mobile/pubspec.yaml
rm ../../dargon2_flutter_desktop/pubspec.yaml
rm ../../dargon2_flutter_platform_interface/pubspec.yaml
rm ../../../dargon2_core/pubspec.yaml
mv ../pubspec.test.yaml ../pubspec.yaml
mv ../../dargon2_flutter_web/pubspec.test.yaml ../../dargon2_flutter_web/pubspec.yaml
mv ../../dargon2_flutter_mobile/pubspec.test.yaml ../../dargon2_flutter_mobile/pubspec.yaml
mv ../../dargon2_flutter_desktop/pubspec.test.yaml ../../dargon2_flutter_desktop/pubspec.yaml
mv ../../dargon2_flutter_platform_interface/pubspec.test.yaml ../../dargon2_flutter_platform_interface/pubspec.yaml
mv ../../../dargon2_core/pubspec.test.yaml ../../../dargon2_core/pubspec.yaml
- run: flutter pub get
- run: chromedriver --port=4444 &
- run: flutter drive --driver=test_driver/integration_test.dart --target=integration_test/argon2_ffi_test.dart -d web-server
# test_web:
# runs-on: ubuntu-20.04
# steps:
# - uses: actions/checkout@v2
# - uses: subosito/flutter-action@v2
# - name: Use Test Pubspec Files
# run: |
# rm ../pubspec.yaml
# rm ../../dargon2_flutter_web/pubspec.yaml
# rm ../../dargon2_flutter_mobile/pubspec.yaml
# rm ../../dargon2_flutter_desktop/pubspec.yaml
# rm ../../dargon2_flutter_platform_interface/pubspec.yaml
# rm ../../../dargon2_core/pubspec.yaml
# mv ../pubspec.test.yaml ../pubspec.yaml
# mv ../../dargon2_flutter_web/pubspec.test.yaml ../../dargon2_flutter_web/pubspec.yaml
# mv ../../dargon2_flutter_mobile/pubspec.test.yaml ../../dargon2_flutter_mobile/pubspec.yaml
# mv ../../dargon2_flutter_desktop/pubspec.test.yaml ../../dargon2_flutter_desktop/pubspec.yaml
# mv ../../dargon2_flutter_platform_interface/pubspec.test.yaml ../../dargon2_flutter_platform_interface/pubspec.yaml
# mv ../../../dargon2_core/pubspec.test.yaml ../../../dargon2_core/pubspec.yaml
# - run: flutter pub get
# - run: chromedriver --port=4444 &
# - run: flutter drive --driver=test_driver/integration_test.dart --target=integration_test/argon2_ffi_test.dart -d web-server

test_desktop:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ windows-latest ]
include:
# - os: macos-latest
# FLUTTER_DEVICE: macos
# FLUTTER_CHANNEL: stable
# - os: ubuntu-latest
# FLUTTER_DEVICE: linux
# FLUTTER_CHANNEL: beta
- os: windows-latest
FLUTTER_DEVICE: windows
FLUTTER_CHANNEL: stable
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Download Flutter
uses: subosito/flutter-action@v2
with:
channel: ${{ matrix.FLUTTER_CHANNEL }}
cache: true
cache-key: ${{ matrix.FLUTTER_CHANNEL }}
- name: Enable Flutter Desktop
run: |
flutter config --enable-linux-desktop
flutter config --enable-macos-desktop
flutter config --enable-windows-desktop
- if: matrix.os == 'ubuntu-latest'
name: Install Ninja (Ubuntu Only)
run: sudo apt install -y ninja-build libgtk-3-dev clang
- name: Use Test Pubspec Files
run: |
rm ../pubspec.yaml
rm ../../dargon2_flutter_web/pubspec.yaml
rm ../../dargon2_flutter_mobile/pubspec.yaml
rm ../../dargon2_flutter_desktop/pubspec.yaml
rm ../../dargon2_flutter_platform_interface/pubspec.yaml
rm ../../../dargon2_core/pubspec.yaml
mv ../pubspec.test.yaml ../pubspec.yaml
mv ../../dargon2_flutter_web/pubspec.test.yaml ../../dargon2_flutter_web/pubspec.yaml
mv ../../dargon2_flutter_mobile/pubspec.test.yaml ../../dargon2_flutter_mobile/pubspec.yaml
mv ../../dargon2_flutter_desktop/pubspec.test.yaml ../../dargon2_flutter_desktop/pubspec.yaml
mv ../../dargon2_flutter_platform_interface/pubspec.test.yaml ../../dargon2_flutter_platform_interface/pubspec.yaml
mv ../../../dargon2_core/pubspec.test.yaml ../../../dargon2_core/pubspec.yaml
- name: Run Integration Tests
run: flutter test -d ${{ matrix.FLUTTER_DEVICE }} integration_test/
# test_desktop:
# runs-on: ${{ matrix.os }}
# strategy:
# fail-fast: false
# matrix:
# os: [ windows-latest ]
# include:
# # - os: macos-latest
# # FLUTTER_DEVICE: macos
# # FLUTTER_CHANNEL: stable
# # - os: ubuntu-latest
# # FLUTTER_DEVICE: linux
# # FLUTTER_CHANNEL: beta
# - os: windows-latest
# FLUTTER_DEVICE: windows
# FLUTTER_CHANNEL: stable
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# with:
# submodules: recursive
# - name: Download Flutter
# uses: subosito/flutter-action@v2
# with:
# channel: ${{ matrix.FLUTTER_CHANNEL }}
# cache: true
# cache-key: ${{ matrix.FLUTTER_CHANNEL }}
# - name: Enable Flutter Desktop
# run: |
# flutter config --enable-linux-desktop
# flutter config --enable-macos-desktop
# flutter config --enable-windows-desktop
# - if: matrix.os == 'ubuntu-latest'
# name: Install Ninja (Ubuntu Only)
# run: sudo apt install -y ninja-build libgtk-3-dev clang
# - name: Use Test Pubspec Files
# run: |
# rm ../pubspec.yaml
# rm ../../dargon2_flutter_web/pubspec.yaml
# rm ../../dargon2_flutter_mobile/pubspec.yaml
# rm ../../dargon2_flutter_desktop/pubspec.yaml
# rm ../../dargon2_flutter_platform_interface/pubspec.yaml
# rm ../../../dargon2_core/pubspec.yaml
# mv ../pubspec.test.yaml ../pubspec.yaml
# mv ../../dargon2_flutter_web/pubspec.test.yaml ../../dargon2_flutter_web/pubspec.yaml
# mv ../../dargon2_flutter_mobile/pubspec.test.yaml ../../dargon2_flutter_mobile/pubspec.yaml
# mv ../../dargon2_flutter_desktop/pubspec.test.yaml ../../dargon2_flutter_desktop/pubspec.yaml
# mv ../../dargon2_flutter_platform_interface/pubspec.test.yaml ../../dargon2_flutter_platform_interface/pubspec.yaml
# mv ../../../dargon2_core/pubspec.test.yaml ../../../dargon2_core/pubspec.yaml
# - name: Run Integration Tests
# run: flutter test -d ${{ matrix.FLUTTER_DEVICE }} integration_test/

0 comments on commit c306963

Please sign in to comment.