Skip to content

Commit

Permalink
[skip slack] Run integration tests with 'guest' gpu
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCyjaneK committed Jan 16, 2025
1 parent 5060cbe commit b0b1603
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions .github/workflows/automated_integration_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Automated Integration Tests

on:
pull_request:
branches: [main, Integrate-Seed-Verification-Flow-To-Integration-Tests]
branches: [main, Integrate-Seed-Verification-Flow-To-Integration-Tests, cyjan-Integrate-Seed-Verification-Flow-To-Integration-Tests]
defaults:
run:
shell: bash
Expand Down Expand Up @@ -249,36 +249,13 @@ jobs:
sanitized_branch_name=$(echo "$sanitized_branch_name" | sed 's/[^a-z0-9]//g') # Remove all special characters
echo -e "id=com.cakewallet.test_${sanitized_branch_name}\nname=${BRANCH_NAME}" > android/app.properties
- name: Build
run: |
flutter build apk --release --split-per-abi
- name: Rename apk file
run: |
cd build/app/outputs/flutter-apk
mkdir test-apk
cp app-arm64-v8a-release.apk test-apk/${BRANCH_NAME}.apk
cp app-x86_64-release.apk test-apk/${BRANCH_NAME}_x86.apk
cd test-apk
cp ${BRANCH_NAME}.apk ${BRANCH_NAME}_slack.apk
- name: Find APK file
id: find_apk
run: |
set -x
apk_file=$(ls build/app/outputs/flutter-apk/test-apk/*_slack.apk || exit 1)
echo "APK_FILE=$apk_file" >> $GITHUB_ENV
- name: cleanup
run: rm -rf build/app/outputs/flutter-apk/test-apk/
- name: 🚀 Integration tests on Android Emulator
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
emulator-options: -no-snapshot-save -no-window -gpu guest -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: |
chmod a+rx integration_test_runner.sh
Expand Down

0 comments on commit b0b1603

Please sign in to comment.