File tree Expand file tree Collapse file tree 3 files changed +15
-33
lines changed Expand file tree Collapse file tree 3 files changed +15
-33
lines changed Original file line number Diff line number Diff line change @@ -26,24 +26,15 @@ jobs:
2626 java-version : 11
2727 distribution : ' adopt'
2828
29- - name : Get yarn cache directory path
30- id : yarn-cache-dir-path
31- run : |
32- echo "{dir}={$(yarn cache dir)}" >> $GITHUB_OUTPUT
33- echo "::set-output name=dir::{$(yarn cache dir)}"
34- cat $GITHUB_OUTPUT
35-
36- - name : Restore node_modules from cache
37- uses : actions/cache@v3
38- id : yarn-cache
29+ - name : Setup Node
30+ uses : actions/setup-node@v4
3931 with :
40- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
41- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
42- restore-keys : |
43- ${{ runner.os }}-yarn-
32+ node-version : ' 18'
33+ cache : ' yarn'
4434
45- - name : Install dependencies
46- run : yarn install --frozen-lockfile --prefer-offline
35+ - name : Install node modules
36+ run : |
37+ yarn install --immutable --immutable-cache --check-cache
4738
4839 - name : Cache Gradle Wrapper
4940 uses : actions/cache@v3
Original file line number Diff line number Diff line change @@ -27,24 +27,15 @@ jobs:
2727 java-version : 11
2828 distribution : ' adopt'
2929
30- - name : Get yarn cache directory path
31- id : yarn-cache-dir-path
32- run : |
33- echo "{dir}={$(yarn cache dir)}" >> $GITHUB_OUTPUT
34- echo "::set-output name=dir::{$(yarn cache dir)}"
35- cat $GITHUB_OUTPUT
36-
37- - name : Restore node_modules from cache
38- uses : actions/cache@v3
39- id : yarn-cache
30+ - name : Setup Node
31+ uses : actions/setup-node@v4
4032 with :
41- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
42- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
43- restore-keys : |
44- ${{ runner.os }}-yarn-
33+ node-version : ' 18'
34+ cache : ' yarn'
4535
46- - name : Install dependencies
47- run : yarn install --frozen-lockfile --prefer-offline
36+ - name : Install node modules
37+ run : |
38+ yarn install --immutable --immutable-cache --check-cache
4839
4940 - name : Cache Gradle Wrapper
5041 uses : actions/cache@v3
Original file line number Diff line number Diff line change 2424
2525 - name : Install node modules
2626 run : |
27- yarn install --frozen-lockfile --check-cache
27+ yarn install --immutable --immutable-cache --check-cache
2828
2929 - name : Run ESLint
3030 run : |
You can’t perform that action at this time.
0 commit comments