Skip to content

Commit

Permalink
tmp: trying to fix android tests hanging
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Aug 1, 2024
1 parent 6c1bb2c commit 448f256
Showing 1 changed file with 33 additions and 29 deletions.
62 changes: 33 additions & 29 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
with:
access_token: ${{ github.token }}

metrics:
# metrics:
runs-on: ${{ matrix.runs-on }}
needs: [diff_check]
if: ${{ needs.diff_check.outputs.skip_ci != 'true' }}
Expand Down Expand Up @@ -172,23 +172,23 @@ jobs:
strategy:
fail-fast: false # keeps matrix running if one fails
matrix:
rn-version: ['0.65.3', '0.73.9']
rn-architecture: ['legacy', 'new']
platform: ['android', 'ios']
rn-version: ['0.73.9']
rn-architecture: ['new']
platform: ['android']
build-type: ['production']
ios-use-frameworks: ['no', 'static', 'dynamic']
engine: ['hermes', 'jsc']
include:
- platform: ios
rn-version: '0.73.9'
runs-on: macos-14 # uses m1 https://github.blog/changelog/2024-01-30-github-actions-macos-14-sonoma-is-now-available/
runtime: 'latest'
device: 'iPhone 14'
- platform: ios
rn-version: '0.65.3'
runs-on: macos-12
runtime: 'latest'
device: 'iPhone 14'
# - platform: ios
# rn-version: '0.73.9'
# runs-on: macos-14 # uses m1 https://github.blog/changelog/2024-01-30-github-actions-macos-14-sonoma-is-now-available/
# runtime: 'latest'
# device: 'iPhone 14'
# - platform: ios
# rn-version: '0.65.3'
# runs-on: macos-12
# runtime: 'latest'
# device: 'iPhone 14'
- platform: android
runs-on: ubuntu-latest
exclude:
Expand Down Expand Up @@ -332,23 +332,23 @@ jobs:
strategy:
fail-fast: false # keeps matrix running if one fails
matrix:
rn-version: ['0.65.3', '0.73.9']
rn-architecture: ['legacy', 'new']
platform: ['android', 'ios']
rn-version: ['0.73.9']
rn-architecture: ['new']
platform: ['android']
build-type: ['production']
ios-use-frameworks: ['no'] # test only no framworks
engine: ['hermes', 'jsc']
include:
- platform: ios
rn-version: '0.73.9'
runs-on: macos-14 # uses m1 https://github.blog/changelog/2024-01-30-github-actions-macos-14-sonoma-is-now-available/
runtime: 'latest'
device: 'iPhone 14'
- platform: ios
rn-version: '0.65.3'
runs-on: macos-latest
runtime: 'latest'
device: 'iPhone 14'
# - platform: ios
# rn-version: '0.73.9'
# runs-on: macos-14 # uses m1 https://github.blog/changelog/2024-01-30-github-actions-macos-14-sonoma-is-now-available/
# runtime: 'latest'
# device: 'iPhone 14'
# - platform: ios
# rn-version: '0.65.3'
# runs-on: macos-latest
# runtime: 'latest'
# device: 'iPhone 14'
- platform: android
runs-on: ubuntu-latest
exclude:
Expand Down Expand Up @@ -417,9 +417,15 @@ jobs:
working-directory: test/e2e
run: yarn install

- name: Setup tmate session
if: ${{ matrix.platform == 'android' }}
uses: mxschmitt/action-tmate@v3

- name: Run tests on Android
if: ${{ matrix.platform == 'android' }}
uses: reactivecircus/android-emulator-runner@77986be26589807b8ebab3fde7bbf5c60dabec32 # [email protected]
env:
ANDROID_EMULATOR_WAIT_TIME_BEFORE_KILL: 60
with:
api-level: 30
force-avd-creation: false
Expand All @@ -438,8 +444,6 @@ jobs:
-timezone US/Pacific
script: |
./scripts/e2e.mjs ${{ matrix.platform }} --test
# See https://github.com/ReactiveCircus/android-emulator-runner/issues/385
killall --signal 9 crashpad_handler
- uses: actions/cache@v4
if: ${{ matrix.platform == 'ios' }}
Expand Down

0 comments on commit 448f256

Please sign in to comment.