File tree Expand file tree Collapse file tree 1 file changed +26
-4
lines changed Expand file tree Collapse file tree 1 file changed +26
-4
lines changed Original file line number Diff line number Diff line change 9
9
jobs :
10
10
Build :
11
11
if : " !contains(github.event.head_commit.message, '[skip ci]')"
12
- runs-on : ubuntu-latest
12
+ runs-on : ${{ matrix.os }}
13
+
14
+ strategy :
15
+ matrix :
16
+ os :
17
+ - ubuntu-latest
18
+ node :
19
+ - 16
20
+ pnpm :
21
+ - 7
22
+
13
23
steps :
14
24
- uses : actions/checkout@v3
15
25
with :
@@ -21,14 +31,26 @@ jobs:
21
31
- name : Checkout 🛎️
22
32
uses : actions/checkout@v3
23
33
34
+ - name : Cache
35
+ uses : actions/cache@v2
36
+ with :
37
+ path : |
38
+ ~/.pnpm-store
39
+ D:\.pnpm-store
40
+ ~/.local/share/pnpm/store/
41
+ ~/AppData/Local/pnpm/store/
42
+ key : " cache-OS:${{ matrix.os }}-Node:${{ matrix.node }}-${{ matrix.pnpm }}-${{ hashFiles('./.npmrc') }}-${{ hashFiles('./package.json') }}"
43
+ restore-keys : |
44
+ "cache-OS:${{ matrix.os }}-Node:${{ matrix.node }}-${{ matrix.pnpm }}"
45
+
24
46
- uses : actions/setup-node@v3
25
47
with :
26
- node-version : 16
48
+ node-version : ${{ matrix.node }}
27
49
28
50
- name : Setup PNPM
29
- uses : pnpm/action-setup@master
51
+ uses : pnpm/action-setup@v2.2.2
30
52
with :
31
- version : latest
53
+ version : ${{ matrix.pnpm }}
32
54
33
55
- name : Install and Build 🔧
34
56
run : |
You can’t perform that action at this time.
0 commit comments