From af2df7bcf3db21968557fc644c91ea2d18f66f91 Mon Sep 17 00:00:00 2001 From: Gregor Gilchrist Date: Tue, 3 May 2022 10:41:41 +0200 Subject: [PATCH] running iOS only in preparation for merge --- .github/workflows/detox-ci.yml | 79 +++++++--------------------------- 1 file changed, 15 insertions(+), 64 deletions(-) diff --git a/.github/workflows/detox-ci.yml b/.github/workflows/detox-ci.yml index 45dde7752a..32a41a2d19 100644 --- a/.github/workflows/detox-ci.yml +++ b/.github/workflows/detox-ci.yml @@ -35,7 +35,18 @@ jobs: uses: actions/setup-node@v2 with: node-version-file: '.nvmrc' - cache: 'yarn' + + - name: Get yarn cache + id: yarn-cache-dir + run: echo "::set-output name=yarn-cache-dir::$(yarn cache dir)" + + - name: Restore cache + id: yarn-cache + uses: actions/cache@v2 + with: + path: ${{ steps.yarn-cache-dir.outputs.yarn-cache-dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: ${{ runner.os }}-yarn- - name: Has hash commit deps uses: ledgerhq/actions/packages/has-hash-commit-deps@main @@ -55,9 +66,9 @@ jobs: JOBS: max run: yarn --prefer-offline --frozen-lockfile --network-timeout 100000 - # - name: Rebuild detox - # if: ${{ steps.yarn-cache.outputs.cache-hit == 'true' }} - # run: yarn detox clean-framework-cache && yarn detox build-framework-cache + - name: Rebuild detox + if: ${{ steps.yarn-cache.outputs.cache-hit == 'true' }} + run: yarn detox clean-framework-cache && yarn detox build-framework-cache - name: Build iOS app for detox test run env: @@ -74,63 +85,3 @@ jobs: with: name: test-ios-artifacts path: artifacts - - android: - runs-on: macos-latest - steps: - - name: Checkout PR - uses: actions/checkout@v2 - with: - ref: ${{github.event.pull_request.head.ref}} - repository: ${{github.event.pull_request.head.repo.full_name}} - - - name: Setup Node - uses: actions/setup-node@v2 - with: - node-version: '14' - cache: 'yarn' - - - name: Check hash commit deps - uses: ledgerhq/actions/packages/has-hash-commit-deps@main - id: has-hash-commit-deps - with: - workspace: ${{ github.workspace }} - - - name: Install dependencies - if: ${{ steps.has-hash-commit-deps.outputs.has-hash-commit-deps == 'true' }} - env: - JOBS: max - run: yarn --prefer-offline --frozen-lockfile --network-timeout 100000 --network-concurrency 1 - - - name: install dependencies - if: ${{ steps.has-hash-commit-deps.outputs.has-hash-commit-deps == 'false' }} - env: - JOBS: max - run: yarn --prefer-offline --frozen-lockfile --network-timeout 100000 - - - name: Build Android app for Detox test run - env: - NODE_OPTIONS: "--max-old-space-size=7168" - run: yarn e2e:build -c android.staging-ci - - - name: Run Android tests - timeout-minutes: 20 - uses: reactivecircus/android-emulator-runner@v2 - with: - api-level: 29 - # force-avd-creation: false - avd-name: Nexus_6_API_30 - emulator-options: -verbose -no-boot-anim -noaudio - ram-size: 2048 - script: | - mkdir ./temp - curl -f -o ./temp/test-butler-app.apk https://repo1.maven.org/maven2/com/linkedin/testbutler/test-butler-app/2.2.1/test-butler-app-2.2.1.apk - adb install ./temp/test-butler-app.apk || adb install ./e2e/test-butler-app.apk - yarn e2e:test -c android.staging-ci --loglevel verbose --record-logs failing --record-timeline all --take-screenshots all --record-videos failing --detectOpenHandles - - - name: Upload test artifacts - if: always() - uses: actions/upload-artifact@v2 - with: - name: test-android-artifacts - path: artifacts