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