1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

feat: fix

This commit is contained in:
steven 2023-03-31 22:01:16 +08:00
parent e76747f7d3
commit 706cd8c415

View File

@ -4,41 +4,41 @@ on: push
jobs: jobs:
e2e-android: e2e-android:
runs-on: macos-latest runs-on: macos-latest
steps: # steps:
- name: Checkout repository # - name: Checkout repository
uses: actions/checkout@v3 # uses: actions/checkout@v3
- name: Setup Node.js # - name: Setup Node.js
uses: actions/setup-node@v3 # uses: actions/setup-node@v3
with: # with:
cache: yarn # cache: yarn
node-version-file: .nvmrc # node-version-file: .nvmrc
- name: Install Yarn dependencies # - name: Install Yarn dependencies
run: yarn --frozen-lockfile --prefer-offline # run: yarn --frozen-lockfile --prefer-offline
- name: Setup Java # - name: Setup Java
uses: actions/setup-java@v3 # uses: actions/setup-java@v3
with: # with:
cache: gradle # cache: gradle
distribution: temurin # distribution: temurin
java-version: 17 # java-version: 17
- name: Cache Detox build # - name: Cache Detox build
id: cache-detox-build # id: cache-detox-build
uses: actions/cache@v3 # uses: actions/cache@v3
with: # with:
path: android/app/build # path: android/app/build
key: ${{ runner.os }}-detox-build # key: ${{ runner.os }}-detox-build
restore-keys: | # restore-keys: |
${{ runner.os }}-detox-build # ${{ runner.os }}-detox-build
- name: Detox build # - name: Detox build
run: yarn build:android-debug # run: yarn build:android-debug
- name: Get device name - name: Get device name
id: device id: device
run: node -e "console.log('AVD_NAME=' + require('./.detoxrc').devices.emulator.device.avdName)" >> $GITHUB_OUTPUT run: node -e "console.log('AVD_NAME=' + require('./Example/testHotUpdate/detox.config.js').devices.emulator.device.avdName)" >> $GITHUB_OUTPUT
- name: Detox test - name: Detox test
uses: reactivecircus/android-emulator-runner@v2 uses: reactivecircus/android-emulator-runner@v2