Skip to content

refactor: P1 structural improvements — move interactors to core, cons… #891

refactor: P1 structural improvements — move interactors to core, cons…

refactor: P1 structural improvements — move interactors to core, cons… #891

Workflow file for this run

name: Android
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
integration-android:
name: Integration Tests
runs-on: ubuntu-latest
timeout-minutes: 80
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup toolchain
uses: ./.github/actions/setup-node-pnpm
- name: Resolve agent-device home
id: android-agent-home
run: echo "dir=$HOME/.agent-device" >> "$GITHUB_OUTPUT"
- name: Enable KVM
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: Run Android integration test
uses: reactivecircus/android-emulator-runner@b530d96654c385303d652368551fb075bc2f0b6b # v2.35.0
with:
api-level: 35
arch: x86_64
profile: pixel_7
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -no-metrics
script: node --experimental-strip-types src/bin.ts test test/integration/replays/android --retries 3
- name: Upload Android artifacts
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: android-artifacts
if-no-files-found: ignore
path: |
${{ steps.android-agent-home.outputs.dir }}/daemon.log
${{ steps.android-agent-home.outputs.dir }}/sessions/**
test/artifacts/**
test/screenshots/**