@@ -20,18 +20,15 @@ jobs:
2020 uses : actions/cache@v4
2121 id : modules-cache
2222 with :
23- lookup-only : true
2423 path : |
2524 ~/.cache/Cypress
2625 **/node_modules
2726 key : ${{ steps.key.outputs.modules-cache-key }}
2827 - name : Setup Node.js ${{ env.NODE_VERSION }}
29- if : steps.modules-cache.outputs.cache-hit != 'true'
3028 uses : actions/setup-node@v4.3.0
3129 with :
3230 node-version : ${{ env.NODE_VERSION }}
3331 - name : Install dependencies
34- if : steps.modules-cache.outputs.cache-hit != 'true'
3532 run : npm install
3633
3734 - name : Check for uncommitted changes
@@ -52,11 +49,12 @@ jobs:
5249 path : |
5350 ~/.cache/Cypress
5451 **/node_modules
55- key : ${{ runner.os }}-${{ env.NODE_VERSION }}-all- modules-${{ hashFiles('**/package-lock.json') }}
52+ key : ${{ needs.Setup.outputs. modules-cache-key }}
5653 - name : Cache turbo
5754 uses : actions/cache@v4
5855 with :
59- path : ${{ github.workspace }}/.turbo
56+ path : |
57+ **/.turbo
6058 key : ${{ runner.os }}-${{ env.NODE_VERSION }}-turbo-${{ github.sha }}-type-check
6159 restore-keys : |
6260 ${{ runner.os }}-${{ env.NODE_VERSION }}-turbo-
@@ -78,11 +76,12 @@ jobs:
7876 path : |
7977 ~/.cache/Cypress
8078 **/node_modules
81- key : ${{ runner.os }}-${{ env.NODE_VERSION }}-all- modules-${{ hashFiles('**/package-lock.json') }}
79+ key : ${{ needs.Setup.outputs. modules-cache-key }}
8280 - name : Cache turbo
8381 uses : actions/cache@v4
8482 with :
85- path : ${{ github.workspace }}/.turbo
83+ path : |
84+ **/.turbo
8685 key : ${{ runner.os }}-${{ env.NODE_VERSION }}-turbo-${{ github.sha }}-lint
8786 restore-keys : |
8887 ${{ runner.os }}-${{ env.NODE_VERSION }}-turbo-
@@ -108,7 +107,8 @@ jobs:
108107 - name : Cache turbo
109108 uses : actions/cache@v4
110109 with :
111- path : ${{ github.workspace }}/.turbo
110+ path : |
111+ **/.turbo
112112 key : ${{ runner.os }}-${{ env.NODE_VERSION }}-turbo-${{ github.sha }}-unit-tests
113113 restore-keys : |
114114 ${{ runner.os }}-${{ env.NODE_VERSION }}-turbo-
0 commit comments