Skip to content

Commit

Permalink
stabilize android test
Browse files Browse the repository at this point in the history
  • Loading branch information
retyui committed Aug 8, 2023
1 parent 3b24a85 commit 4ee146a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/android-github-actions-ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

strategy:
fail-fast: false
max-parallel: 8
max-parallel: 10
matrix:
arch: [x86, x86_64]
# ^^^ `runs-on: ubuntu-*` doesn't support `arm64-v8a`
Expand Down Expand Up @@ -86,11 +86,14 @@ jobs:
echo "Running pre emulator launch script. Printing the working directory now:"
pwd
script: |
npx envinfo # check memory usage
# check memory usage
npx envinfo
# verify emulator is running
adb devices
adb devices # verify emulator is running
adb install app-release.apk # install app
# Install app
adb install app-release.apk || (adb kill-server && adb start-server && adb devices && adb install app-release.apk)
# Run e2e
./run_android_e2e.sh
Expand All @@ -102,15 +105,9 @@ jobs:
if: always()
uses: actions/upload-artifact@v3
with:
name: e2e-report-${{ matrix.api-level }}-${{ matrix.arch }}-${{ matrix.target }}
name: E2E Report (${{ matrix.arch }}, ${{ matrix.api-level }}, ${{ matrix.target }})
path: |
${{ github.workspace }}/*.mp4
${{ github.workspace }}/*.png
${{ github.workspace }}/report*.xml
- name: Upload debug logs
if: always()
uses: actions/upload-artifact@v3
with:
name: e2e-debug-logs-${{ matrix.api-level }}-${{ matrix.arch }}-${{ matrix.target }}
path: ~/.maestro/tests/**/*
~/.maestro/tests/**/*
8 changes: 4 additions & 4 deletions .maestro/simple-calculator.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
appId: ${APP_ID}
name: Verify increment and decrement buttons work
onFlowStart:
- startRecording: simple-calculator
onFlowComplete:
- stopRecording
#onFlowStart:
# - startRecording: simple-calculator
#onFlowComplete:
# - stopRecording
---
- launchApp
- runFlow: _subflow/wait_app_to_run.yaml
Expand Down

0 comments on commit 4ee146a

Please sign in to comment.