diff --git a/.github/workflows/callable-e2e-test-detox.yml b/.github/workflows/callable-e2e-test-detox.yml index 46cb108baca..a79240ff729 100644 --- a/.github/workflows/callable-e2e-test-detox.yml +++ b/.github/workflows/callable-e2e-test-detox.yml @@ -42,13 +42,19 @@ jobs: - name: Load Verdaccio with AmplifyJs uses: ./amplify-js/.github/actions/load-verdaccio-with-amplify-js + - name: Get repo cache paths + id: cache_paths + run: | + echo "YARN_LOCK_PATH=${{ inputs.working_directory }}/yarn.lock" >> $GITHUB_OUTPUT + echo "POD_LOCK_PATH=${{ inputs.working_directory }}/ios/Podfile.lock" >> $GITHUB_OUTPUT + echo "DETOX_BUILD_PATH=${{ inputs.working_directory }}/ios/build" >> $GITHUB_OUTPUT - name: Cache node_modules id: modules-cache uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 with: path: ${{ inputs.working_directory }}/node_modules key: | - ${{ inputs.test_name }}-detox-modules-${{ hashFiles(format('{0}/yarn.lock', inputs.working_directory)) }} + ${{ inputs.test_name }}-detox-modules-${{ hashFiles(steps.cache_paths.outputs.YARN_LOCK_PATH) }} restore-keys: | ${{ inputs.test_name }}-detox-modules- - name: Yarn Install @@ -64,7 +70,7 @@ jobs: # # uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 # # with: # # path: ${{ inputs.working_directory }}/ios/Pods - # # key: ${{ inputs.test_name }}-pods-${{ hashFiles('ios/Podfile.lock') }} + # # key: ${{ inputs.test_name }}-pods-${{ hashFiles(steps.cache_paths.outputs.POD_LOCK_PATH) }} # # restore-keys: | # # ${{ inputs.test_name }}-pods- # - name: Install CocoaPods