Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
natsuk4ze committed Jul 28, 2023
1 parent 456e4cf commit 3cf0913
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,13 @@ jobs:
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
script: |
APK_BUILD_COMMAND="flutter build apk --debug"
APK_INSTALL_COMMAND="adb install -r build/app/outputs/flutter-apk/app-debug.apk"
PERMISSION_GRANT_COMMAND="adb shell pm grant studio.midoridesign.gal_example android.permission.WRITE_EXTERNAL_STORAGE"
if [ ${{ matrix.api-level }} -le 29 ]; then
flutter build apk --debug
adb install -r build/app/outputs/flutter-apk/app-debug.apk
adb shell pm grant studio.midoridesign.gal_example android.permission.WRITE_EXTERNAL_STORAGE
$APK_BUILD_COMMAND
$APK_INSTALL_COMMAND
$PERMISSION_GRANT_COMMAND
fi
flutter test integration_test/integration_test.dart --timeout none
Expand All @@ -183,10 +186,13 @@ jobs:
script: |
flutter clean
flutter pub get
APK_BUILD_COMMAND="flutter build apk --debug"
APK_INSTALL_COMMAND="adb install -r build/app/outputs/flutter-apk/app-debug.apk"
PERMISSION_GRANT_COMMAND="adb shell pm grant studio.midoridesign.gal_example android.permission.WRITE_EXTERNAL_STORAGE"
if [ ${{ matrix.api-level }} -le 29 ]; then
flutter build apk --debug
adb install -r build/app/outputs/flutter-apk/app-debug.apk
adb shell pm grant studio.midoridesign.gal_example android.permission.WRITE_EXTERNAL_STORAGE
$APK_BUILD_COMMAND
$APK_INSTALL_COMMAND
$PERMISSION_GRANT_COMMAND
fi
flutter test integration_test/integration_test.dart --timeout none
pre-emulator-launch-script: |
Expand Down

0 comments on commit 3cf0913

Please sign in to comment.