Skip to content

Commit

Permalink
Merge pull request #34 from codeceptjs/support-detox-20x
Browse files Browse the repository at this point in the history
feat:  support detox 20.x
  • Loading branch information
kobenguyent authored Feb 15, 2024
2 parents 4469614 + 6aa7696 commit 7e7991e
Show file tree
Hide file tree
Showing 5,846 changed files with 1,645 additions and 331,270 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Binary file added .DS_Store
Binary file not shown.
45 changes: 45 additions & 0 deletions .github/workflows/e2e-android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# .github/workflows/e2e-android.yml
name: e2e-android
on: push

jobs:
e2e-android:
runs-on: macos-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'

- name: Install Yarn dependencies
run: yarn --frozen-lockfile --prefer-offline

- name: Setup Java
uses: actions/setup-java@v3
with:
cache: gradle
distribution: temurin
java-version: 17

- name: Get device name
id: device
run: node -e "console.log('AVD_NAME=' + require('./test/package.json').detox.devices.emulator.device.avdName)" >> $GITHUB_OUTPUT

- name: Detox test
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 34
arch: x86_64
avd-name: ${{ steps.device.outputs.AVD_NAME }}
script: cd test && npm i --force && npx codeceptjs run --verbose

- name: Upload artifacts
if: failure()
uses: actions/upload-artifact@v3
with:
name: detox-artifacts
path: artifacts
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,27 @@ node_modules
package-lock.json
output
.idea
test/android/app/build
test/node_modules
test/android/gradle

test/ios/Pods
test/ios/MyTestApp
test/ios/MyTestAppTests
test/ios/Pods/Podfile.lock
test/ios/build/Build/Intermediates.noindex

test/package-lock.json
test/yarn.lock

test/output
test/Gemfile.lock

test/android/.gradle
test/android/.idea
test/android/local.properties
test/android/app/src/main/assets/index.android.bundle
test/android/app/build/generated
test/android/app/build/intermediates

test/vendor
Loading

0 comments on commit 7e7991e

Please sign in to comment.