File tree 1 file changed +7
-18
lines changed
1 file changed +7
-18
lines changed Original file line number Diff line number Diff line change 12
12
with :
13
13
node-version : 22
14
14
cache : yarn
15
+ cache-dependency-path : " **/yarn.lock"
15
16
- run : yarn install
16
17
- run : yarn prettier --check .
17
18
@@ -23,34 +24,22 @@ jobs:
23
24
node-version : [18, 20, 21]
24
25
25
26
steps :
26
- - name : Checkout
27
- uses : actions/checkout@v4
28
-
29
- - name : Determine Yarn Cache Path
30
- id : yarn-cache-dir-path
31
- run : echo "::set-output name=dir::$(yarn cache dir)"
27
+ - uses : actions/checkout@v4
32
28
33
- - uses : actions/cache@v4
34
- id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
35
- with :
36
- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
37
- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
38
- restore-keys : |
39
- ${{ runner.os }}-yarn-
29
+ - run : corepack enable
40
30
41
31
- name : Use Node.js ${{ matrix.node-version }}
42
32
uses : actions/setup-node@v4
43
33
with :
44
34
node-version : ${{ matrix.node-version }}
35
+ cache : yarn
36
+ cache-dependency-path : " **/yarn.lock"
45
37
46
- - name : Install Packages
47
- run : yarn install --frozen-lockfile
38
+ - run : yarn install --frozen-lockfile
48
39
49
- - name : Build
50
- run : yarn build
40
+ - run : yarn build
51
41
52
42
- name : Test
53
43
run : yarn test --runInBand=false --maxWorkers=2 --workerIdleMemoryLimit=2GB # https://github.com/facebook/jest/issues/11956
54
44
env :
55
- CI : true
56
45
NODE_OPTIONS : --max_old_space_size=4096
You can’t perform that action at this time.
0 commit comments