Skip to content

Commit

Permalink
testing detox node_modules caching
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashwin Kumar committed Feb 21, 2025
1 parent e0740f4 commit 59623f5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/callable-e2e-test-detox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 59623f5

Please sign in to comment.