Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Jul 29, 2024
1 parent 821980f commit e9ff914
Showing 1 changed file with 45 additions and 4 deletions.
49 changes: 45 additions & 4 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,22 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: maestro-${{ github.run_id }}
path: maestro-cli/build/install/maestro
name: maestro-cli
path: maestro-cli/build/distributions/maestro.zip
retention-days: 1

test-local:
runs-on: ubuntu-latest
if: github.repository == 'mobile-dev-inc/maestro'
needs: build

strategy:
fail-fast: false
matrix:
api-level: [33]
target: [google_apis]
arch: [x86_64]

steps:
- name: Set up JDK
uses: actions/setup-java@v4
Expand All @@ -53,10 +60,41 @@ jobs:
# Name of the artifact to download.
# If unspecified, all artifacts for the run are downloaded.
# Optional.
name: maestro-${{ github.run_id }}
name: maestro-cli

- name: Run Maestro CLI
- name: Add Maestro CLI executable to PATH
run: |
unzip maestro.zip
echo "$PWD/maestro/bin" >> $GITHUB_PATH
- name: Check if Maestro CLI executable starts up
run: ./maestro --help

- name: Create AVD and generate snapshot for caching
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
target: ${{ matrix.target }}
arch: ${{ matrix.arch }}
ram-size: 3072M
heap-size: 1024M
disk-size: 8192M
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
script: echo "Generated AVD"

- name: Start emulator and run a Flow
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
target: ${{ matrix.target }}
arch: ${{ matrix.arch }}
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: false
working-directory: ${{ github.workspace }}/packages/patrol/example/android
script: |
maestro test
test-cloud:
runs-on: ubuntu-latest
Expand All @@ -77,3 +115,6 @@ jobs:
with:
distribution: zulu
java-version: 8

- name: Check if Maestro CLI executable starts up
run: ./maestro --help

0 comments on commit e9ff914

Please sign in to comment.