Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
BilligsterUser committed Mar 29, 2024
1 parent 4acac09 commit 0ace5f8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 deletions.
27 changes: 10 additions & 17 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "17"
java-version: "17"

- uses: expo/expo-github-action@v8

Expand All @@ -143,27 +143,20 @@ jobs:

- name: Get device name
id: device-name
run: echo "::set-output name=DEVICE_NAME::$(node -e "console.log(require('./detox.config.js').devices.emulator.device.avdName)")"
# run: echo "::set-output name=DEVICE_NAME::$(adb devices | grep emulator | cut -f1)"
run:
echo "::set-output name=DEVICE_NAME::$(node -e "console.log(require('./detox.config.js').devices.emulator.device.avdName)")"
# run: echo "::set-output name=DEVICE_NAME::$(adb devices | grep emulator | cut -f1)"

- name: Detox test
# uses: wixplosives/detox-action@v2
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 33
arch: x86_64
avd-name: ${{ steps.device-name.outputs.DEVICE_NAME }}
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
# emulator-build: stable
script: npm run detox:test:android:ci


- name: Build android APK
run: |
cd ./android && ./gradlew assembleRelease --no-daemon --stacktrace
find . -type f -name '*.apk' 2>/dev/null
cd ${{ env.GITHUB_WORKSPACE }}
shell: bash
api-level: 33
arch: x86_64
avd-name: ${{ steps.device-name.outputs.DEVICE_NAME }}
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
# emulator-build: stable
script: npm run detox:test:android:ci

- name: Save Cache
id: cache-save
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,3 @@ jobs:
uses: codecov/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}

# 18.x, 20.x,

0 comments on commit 0ace5f8

Please sign in to comment.