Skip to content

fix(ios): Fix fabric builds for iOS (#897) #252

fix(ios): Fix fabric builds for iOS (#897)

fix(ios): Fix fabric builds for iOS (#897) #252

Workflow file for this run

name: Android Build
on:
pull_request:
branches:
- master
paths:
- '.github/workflows/android.yml'
- 'android/**'
- 'example/android/**'
push:
branches:
- master
jobs:
android-build:
runs-on: macos-12
concurrency:
group: ${{ github.ref }}-android
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-dependencies
- name: Pull dependencies
uses: actions/cache@v4
with:
path: ./node_modules
key: ${{ hashFiles('./package.json') }}
- name: Cache example node modules
id: cache-example-npm
uses: actions/cache@v4
env:
cache-name: cached-example-npm-deps
with:
path: example/node_modules
key: ${{ hashFiles('./example/yarn.lock') }}-${{ hashFiles('./yarn.lock') }}
- name: Install required example dependencies on yarn.lock change
if: steps.cache-example-npm.outputs.cache-hit != 'true'
run: yarn bootstrap-no-pods --frozen-lockfile
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
cache: 'gradle'
- name: Install Maestro CLI
run: export MAESTRO_VERSION=1.31.0; curl -Ls "https://get.maestro.mobile.dev" | bash
- name: Add Maestro to path
run: echo "${HOME}/.maestro/bin" >> $GITHUB_PATH
- name: Run Android Emulator and app
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 31
target: aosp_atd
profile: pixel_2
ram-size: '4096M'
disk-size: '10G'
disable-animations: false
avd-name: e2e_emulator
arch: x86_64
script: |
yarn run-example-android
yarn test:e2e:android
- name: Upload report
if: always()
uses: actions/upload-artifact@v4
with:
name: E2E Report
path: |
${{ github.workspace }}/*.mp4
${{ github.workspace }}/*.png
${{ github.workspace }}/report*.xml
~/.maestro/tests/**/*
- name: Store tests result
uses: actions/upload-artifact@v4
with:
name: e2e_android_report
path: |
report.xml