diff --git a/.github/workflows/android-e2e-test.yml b/.github/workflows/android-e2e-test.yml index 285ac7cf5e..d14bfb64ca 100644 --- a/.github/workflows/android-e2e-test.yml +++ b/.github/workflows/android-e2e-test.yml @@ -42,7 +42,7 @@ jobs: java-version: '11' - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - name: Restore node_modules from cache uses: actions/cache@v3 id: yarn-cache @@ -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/build-android-fabric.yml b/.github/workflows/build-android-fabric.yml index 768d9f6461..45bf740fcf 100644 --- a/.github/workflows/build-android-fabric.yml +++ b/.github/workflows/build-android-fabric.yml @@ -35,7 +35,7 @@ jobs: - name: Get yarn cache directory path id: fabric-yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - name: Restore node_modules from cache uses: actions/cache@v3 id: yarn-cache diff --git a/.github/workflows/build-android.yml b/.github/workflows/build-android.yml index fa9d69b5aa..3c5bda6b6c 100644 --- a/.github/workflows/build-android.yml +++ b/.github/workflows/build-android.yml @@ -33,7 +33,7 @@ jobs: - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - name: Restore node_modules from cache uses: actions/cache@v3 id: yarn-cache diff --git a/.github/workflows/build-ios-fabric.yml b/.github/workflows/build-ios-fabric.yml index a3d33ee86a..f0a92efecc 100644 --- a/.github/workflows/build-ios-fabric.yml +++ b/.github/workflows/build-ios-fabric.yml @@ -34,7 +34,7 @@ jobs: - name: Get yarn cache directory path id: fabric-yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - name: Restore node_modules from cache uses: actions/cache@v3 id: yarn-cache diff --git a/.github/workflows/build-ios.yml b/.github/workflows/build-ios.yml index c11474137b..7df326a878 100644 --- a/.github/workflows/build-ios.yml +++ b/.github/workflows/build-ios.yml @@ -32,7 +32,7 @@ jobs: - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - name: Restore node_modules from cache uses: actions/cache@v3 id: yarn-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