File tree Expand file tree Collapse file tree 2 files changed +25
-9
lines changed Expand file tree Collapse file tree 2 files changed +25
-9
lines changed Original file line number Diff line number Diff line change @@ -11,18 +11,26 @@ jobs:
1111 analyze :
1212 runs-on : ubuntu-latest
1313 steps :
14- - uses : actions/checkout@v3
14+ - uses : actions/checkout@v4
1515
1616 - name : Set up node
17- uses : actions/setup-node@v3
17+ uses : actions/setup-node@v4
1818 with :
1919 node-version : ' 20.x'
20+ cache : yarn
21+ cache-dependency-path : yarn.lock
2022
21- - name : Install dependencies
22- 23+ - name : Restore cached node_modules
24+ uses : actions/cache@v4
25+ with :
26+ path : ' **/node_modules'
27+ key : node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
28+
29+ - name : Install deps
30+ run : yarn install --frozen-lockfile
2331
2432 - name : Restore next build
25- uses : actions/cache@v3
33+ uses : actions/cache@v4
2634 id : restore-build-cache
2735 env :
2836 cache-name : cache-next-build
Original file line number Diff line number Diff line change @@ -14,14 +14,22 @@ jobs:
1414 name : Lint on node 20.x and ubuntu-latest
1515
1616 steps :
17- - uses : actions/checkout@v1
17+ - uses : actions/checkout@v4
1818 - name : Use Node.js 20.x
19- uses : actions/setup-node@v3
19+ uses : actions/setup-node@v4
2020 with :
2121 node-version : 20.x
22+ cache : yarn
23+ cache-dependency-path : yarn.lock
2224
23- - name : Install deps and build (with cache)
24- 25+ - name : Restore cached node_modules
26+ uses : actions/cache@v4
27+ with :
28+ path : ' **/node_modules'
29+ key : node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
30+
31+ - name : Install deps
32+ run : yarn install --frozen-lockfile
2533
2634 - name : Lint codebase
2735 run : yarn ci-check
You can’t perform that action at this time.
0 commit comments