@@ -15,19 +15,19 @@ jobs:
15
15
lint :
16
16
strategy :
17
17
matrix :
18
- os : [ubuntu-latest, windows-latest ]
18
+ node-version : ['18.x', '20.x' ]
19
19
20
- name : Lint - ${{ matrix.os }}
21
- runs-on : ${{ matrix.os }}
20
+ name : Lint - ${{ matrix.node-version }}
21
+ runs-on : ' ubuntu-latest '
22
22
23
23
steps :
24
24
- name : Checkout
25
25
uses : actions/checkout@v3
26
26
27
- - name : Install Node.js 20.x
27
+ - name : Install Node.js ${{ matrix.node-version }}
28
28
uses : actions/setup-node@v3
29
29
with :
30
- node-version : 20.x
30
+ node-version : ${{ matrix.node-version }}
31
31
32
32
- name : Install pnpm
33
33
uses : pnpm/action-setup@v2
@@ -54,64 +54,22 @@ jobs:
54
54
- name : Lint
55
55
run : pnpm run lint
56
56
57
- typecheck :
58
- strategy :
59
- matrix :
60
- os : [ubuntu-latest, windows-latest]
61
-
62
- name : Typecheck - ${{ matrix.os }}
63
- runs-on : ${{ matrix.os }}
64
-
65
- steps :
66
- - name : Checkout
67
- uses : actions/checkout@v3
68
-
69
- - name : Install Node.js 20.x
70
- uses : actions/setup-node@v3
71
- with :
72
- node-version : 20.x
73
-
74
- - name : Install pnpm
75
- uses : pnpm/action-setup@v2
76
- with :
77
- run_install : false
78
- version : 8
79
-
80
- - name : Obtain pnpm store directory
81
- shell : bash
82
- run : |
83
- echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
84
-
85
- - name : Obtain pnpm store cache
86
- uses : actions/cache@v3
87
- with :
88
- path : ${{ env.STORE_PATH }}
89
- key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
90
- restore-keys : |
91
- ${{ runner.os }}-pnpm-store-
92
-
93
- - name : Install dependencies
94
- run : pnpm install --frozen-lockfile
95
-
96
- - name : Typecheck
97
- run : pnpm run typecheck
98
-
99
57
packages-build-test :
100
58
strategy :
101
59
matrix :
102
- os : [ubuntu-latest, windows-latest ]
60
+ node-version : ['18.x', '20.x' ]
103
61
104
- name : Packages Build Test - ${{ matrix.os }}
105
- runs-on : ${{ matrix.os }}
62
+ name : Packages Build Test - ${{ matrix.node-version }}
63
+ runs-on : ' ubuntu-latest '
106
64
107
65
steps :
108
66
- name : Checkout
109
67
uses : actions/checkout@v3
110
68
111
- - name : Install Node.js 20.x
69
+ - name : Install Node.js ${{ matrix.node-version }}
112
70
uses : actions/setup-node@v3
113
71
with :
114
- node-version : 20.x
72
+ node-version : ${{ matrix.node-version }}
115
73
116
74
- name : Install pnpm
117
75
uses : pnpm/action-setup@v2
0 commit comments