@@ -10,39 +10,26 @@ jobs:
10
10
11
11
strategy :
12
12
matrix :
13
- node-version : [16 .x, 18 .x, 20 .x]
13
+ node-version : [18 .x, 20 .x, 22 .x]
14
14
fail-fast : false
15
15
16
16
steps :
17
17
- name : Checkout
18
- uses : actions/checkout@v3
18
+ uses : actions/checkout@v4
19
19
20
20
- name : Run docker compose
21
- run : docker-compose up -d
22
-
23
- - name : Install Node.js ${{ matrix.node-version }}
24
- uses : actions/setup-node@v3
25
- with :
26
- node-version : ${{ matrix.node-version }}
21
+ run : docker compose up -d
27
22
28
23
- name : Install pnpm
29
- uses : pnpm/action-setup@v2.2.2
24
+ uses : pnpm/action-setup@v4
30
25
with :
31
- version : 8
32
- run_install : false
33
-
34
- - name : Get pnpm store directory
35
- id : pnpm-cache
36
- run : |
37
- echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
26
+ version : 9
38
27
39
- - name : Setup pnpm cache
40
- uses : actions/cache@v3
28
+ - name : Install Node.js ${{ matrix.node-version }}
29
+ uses : actions/setup-node@v4
41
30
with :
42
- path : ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
43
- key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
44
- restore-keys : |
45
- ${{ runner.os }}-pnpm-store-
31
+ node-version : ${{ matrix.node-version }}
32
+ cache : ' pnpm'
46
33
47
34
- name : Install dependencies
48
35
run : pnpm i
@@ -58,31 +45,18 @@ jobs:
58
45
59
46
steps :
60
47
- name : Checkout
61
- uses : actions/checkout@v3
62
-
63
- - name : Install Node.js
64
- uses : actions/setup-node@v3
65
- with :
66
- node-version : 16.x
48
+ uses : actions/checkout@v4
67
49
68
50
- name : Install pnpm
69
- uses : pnpm/action-setup@v2.2.2
51
+ uses : pnpm/action-setup@v4
70
52
with :
71
- version : 8
72
- run_install : false
53
+ version : 9
73
54
74
- - name : Get pnpm store directory
75
- id : pnpm-cache
76
- run : |
77
- echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
78
-
79
- - name : Setup pnpm cache
80
- uses : actions/cache@v3
55
+ - name : Install Node.js ${{ matrix.node-version }}
56
+ uses : actions/setup-node@v4
81
57
with :
82
- path : ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
83
- key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
84
- restore-keys : |
85
- ${{ runner.os }}-pnpm-store-
58
+ node-version : ${{ matrix.node-version }}
59
+ cache : ' pnpm'
86
60
87
61
- name : Install dependencies
88
62
run : pnpm i
0 commit comments