e2e #668
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: e2e | |
on: | |
workflow_dispatch: | |
workflow_call: | |
jobs: | |
e2e: | |
# macos-13-xlarge is an M1 mac (which has no Android SDK) | |
runs-on: macos-14-large | |
timeout-minutes: 45 | |
strategy: | |
matrix: | |
api-level: | |
- 32 | |
target: | |
- google_apis | |
arch: | |
- x86_64 | |
cores: | |
- 8 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0 | |
with: | |
distribution: "temurin" | |
java-version: 17 | |
- name: AVD cache | |
uses: actions/cache@v4 | |
id: avd-cache | |
with: | |
path: | | |
~/.android/avd/* | |
~/.android/adb* | |
key: avd-${{ matrix.api-level }} | |
- name: Create AVD and generate snapshot for caching | |
if: steps.avd-cache.outputs.cache-hit != 'true' | |
uses: reactivecircus/android-emulator-runner@62dbb605bba737720e10b196cb4220d374026a6d # v2.33.0 | |
with: | |
api-level: ${{ matrix.api-level }} | |
target: ${{ matrix.target }} | |
arch: ${{ matrix.arch }} | |
cores: ${{ matrix.cores }} | |
force-avd-creation: false | |
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | |
disable-animations: false | |
script: echo "Generated AVD snapshot for caching" | |
- name: Run Android integration tests | |
env: | |
API_KEY: ${{ secrets.E2E_API_KEY }} | |
API_ENDPOINT: ${{ secrets.E2E_API_ENDPOINT }} | |
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dorg.gradle.jvmargs="-Xmx1536m -XX:MaxMetaspaceSize=2g" | |
uses: reactivecircus/android-emulator-runner@62dbb605bba737720e10b196cb4220d374026a6d # v2.33.0 | |
with: | |
api-level: ${{ matrix.api-level }} | |
target: ${{ matrix.target }} | |
arch: ${{ matrix.arch }} | |
cores: ${{ matrix.cores }} | |
force-avd-creation: false | |
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | |
disable-animations: true | |
script: ./gradlew uninstallAll && ./gradlew connectedCheck --stacktrace | |
- name: Upload Bucketeer build reports | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: bucketeer-instrumentation-build-reports | |
path: bucketeer/build/reports |