@@ -18,49 +18,59 @@ jobs:
18
18
runs-on : ubuntu-latest
19
19
20
20
steps :
21
- - uses : actions/checkout@v1
22
- - uses : actions/setup-node@v3
21
+ - uses : actions/checkout@v4
22
+ - uses : pnpm/action-setup@v2
23
+ - uses : actions/setup-node@v4
23
24
with :
24
- node-version : 18.x
25
- - name : install yarn
26
- run : npm install -g yarn
27
- - name : install dependencies
28
- run : yarn install --frozen-lockfile
29
- - name : linting
30
- run : yarn lint
25
+ cache : ' pnpm'
26
+ - run : pnpm install
27
+ - run : pnpm lint
31
28
32
29
test :
33
30
name : Tests
34
31
runs-on : ubuntu-latest
35
32
36
33
strategy :
37
34
matrix :
38
- node : ['14 ', '18 ']
35
+ node : ['18 ', '20 ']
39
36
40
37
steps :
41
- - uses : actions/checkout@v1
42
- - uses : actions/setup-node@v3
38
+ - uses : actions/checkout@v4
39
+ - uses : pnpm/action-setup@v2
40
+ - uses : actions/setup-node@v4
43
41
with :
42
+ cache : ' pnpm'
44
43
node-version : ${{ matrix.node }}
45
- - name : install yarn
46
- run : npm install -g yarn
47
- - name : install dependencies
48
- run : yarn install --frozen-lockfile
49
- - name : test
50
- run : yarn test
44
+ - run : pnpm install
45
+ - run : pnpm test
46
+
47
+ test_old :
48
+ name : Tests (Node 14)
49
+ runs-on : ubuntu-latest
50
+
51
+ steps :
52
+ - uses : actions/checkout@v4
53
+ - uses : pnpm/action-setup@v2
54
+ with :
55
+ version : 7
56
+ - uses : actions/setup-node@v4
57
+ with :
58
+ cache : ' pnpm'
59
+ node-version : 14
60
+ # lockfile format version 9 didn't exist with pnpm 7
61
+ - run : pnpm install --no-lockfile
62
+ - run : pnpm test
63
+
51
64
52
65
floating-test :
53
66
name : Floating dependencies
54
67
runs-on : ubuntu-latest
55
68
56
69
steps :
57
- - uses : actions/checkout@v1
58
- - uses : actions/setup-node@v3
70
+ - uses : actions/checkout@v4
71
+ - uses : pnpm/action-setup@v2
72
+ - uses : actions/setup-node@v4
59
73
with :
60
- node-version : ' 18.x'
61
- - name : install yarn
62
- run : npm install -g yarn
63
- - name : install dependencies
64
- run : yarn install --no-lockfile
65
- - name : test
66
- run : yarn test
74
+ cache : ' pnpm'
75
+ - run : pnpm install --no-lockfile
76
+ - run : pnpm test
0 commit comments