From 30ec5606c3a2407c8385310bb128d2701c4456a7 Mon Sep 17 00:00:00 2001 From: kirillzyusko Date: Thu, 14 Dec 2023 22:32:49 +0100 Subject: [PATCH] fix: better consistency in e2e script --- .github/workflows/android-e2e-test.yml | 5 +++-- .github/workflows/ios-e2e-test.yml | 11 +++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/android-e2e-test.yml b/.github/workflows/android-e2e-test.yml index fc56babc4e..d14bfb64ca 100644 --- a/.github/workflows/android-e2e-test.yml +++ b/.github/workflows/android-e2e-test.yml @@ -53,8 +53,9 @@ jobs: ${{ runner.os }}-yarn- - name: Install root dependencies run: yarn install - - name: Install node_modules for example/ - run: yarn install --frozen-lockfile --cwd example + - name: Install example project dependencies + working-directory: ${{ env.WORKING_DIRECTORY }} + run: yarn - name: Install e2e dependencies run: yarn install --cwd e2e - name: Restore Gradle cache diff --git a/.github/workflows/ios-e2e-test.yml b/.github/workflows/ios-e2e-test.yml index 1b36d17282..eaf2861f8c 100644 --- a/.github/workflows/ios-e2e-test.yml +++ b/.github/workflows/ios-e2e-test.yml @@ -41,6 +41,17 @@ jobs: run: xcodebuild -version - name: Install AppleSimulatorUtils run: brew tap wix/brew && brew install applesimutils + - name: Get yarn cache directory path + id: yarn-cache-dir-path + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT + - name: Restore node_modules from cache + uses: actions/cache@v3 + id: yarn-cache + with: + path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- - name: Install root dependencies run: yarn install - name: Install example project dependencies