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 99jobs :
1010 Build :
1111 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+
1323 steps :
1424 - uses : actions/checkout@v3
1525 with :
@@ -21,14 +31,26 @@ jobs:
2131 - name : Checkout 🛎️
2232 uses : actions/checkout@v3
2333
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+
2446 - uses : actions/setup-node@v3
2547 with :
26- node-version : 16
48+ node-version : ${{ matrix.node }}
2749
2850 - name : Setup PNPM
29- uses : pnpm/action-setup@master
51+ uses : pnpm/action-setup@v2.2.2
3052 with :
31- version : latest
53+ version : ${{ matrix.pnpm }}
3254
3355 - name : Install and Build 🔧
3456 run : |
You can’t perform that action at this time.
0 commit comments