File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -80,17 +80,22 @@ jobs:
80
80
- name : Setup NodeJS
81
81
uses : ./.github/workflows/actions/setup-node
82
82
83
- - name : Cache app node_modules
84
- uses : actions/cache@v3
83
+ - name : Get Yarn cache directory path
84
+ id : yarn-cache-dir-path
85
+ run : echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
86
+
87
+ - name : Restore Yarn cache
88
+ uses : actions/cache@v4
89
+ id : yarn-cache
85
90
with :
86
- path : .yarn/ cache
87
- # Cache will be invalidated if yarn.lock changes
88
- key : ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
89
- restore-keys : ${{ runner.os }}-yarn-
91
+ path : ${{ steps .yarn- cache-dir-path.outputs.dir }}
92
+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/ yarn.lock') }}
93
+ restore-keys : |
94
+ ${{ runner.os }}-yarn-
90
95
91
96
- name : Install dependencies
92
97
working-directory : app
93
- run : yarn install --immutable-cache
98
+ run : yarn install --immutable
94
99
95
100
- name : Automated testing
96
101
run : yarn test
You can’t perform that action at this time.
0 commit comments