11
11
merge_group :
12
12
types : [checks_requested]
13
13
14
+ env :
15
+ NODE_VERSION : 18
16
+
14
17
jobs :
15
18
test :
16
- runs-on : ${{ matrix.os }}
19
+ runs-on : ubuntu-latest
17
20
18
21
strategy :
19
22
fail-fast : false
20
23
matrix :
21
- os :
22
- - ubuntu-latest
23
24
node-version :
24
25
- 18
25
26
- 20
@@ -57,20 +58,12 @@ jobs:
57
58
58
59
- name : Upload to Codecov
59
60
uses : codecov/codecov-action@v4
60
- if : matrix.node-version == 18 && matrix.os == 'ubuntu-latest'
61
+ if : matrix.node-version == 18
61
62
with :
62
63
fail_ci_if_error : false
63
64
64
65
lint :
65
- runs-on : ${{ matrix.os }}
66
-
67
- strategy :
68
- fail-fast : false
69
- matrix :
70
- os :
71
- - ubuntu-latest
72
- node-version :
73
- - 18
66
+ runs-on : ubuntu-latest
74
67
75
68
steps :
76
69
- name : Git Checkout
@@ -91,10 +84,10 @@ jobs:
91
84
restore-keys : |
92
85
${{ runner.os }}-yarn-
93
86
94
- - name : Use Node.js ${{ matrix.node-version }}
87
+ - name : Use Node.js ${{ env.NODE_VERSION }}
95
88
uses : actions/setup-node@v4
96
89
with :
97
- node-version : ${{ matrix.node-version }}
90
+ node-version : ${{ env.NODE_VERSION }}
98
91
cache : " yarn"
99
92
100
93
- name : Install Deps
@@ -104,15 +97,7 @@ jobs:
104
97
run : yarn lint:ci
105
98
106
99
typecheck :
107
- runs-on : ${{ matrix.os }}
108
-
109
- strategy :
110
- fail-fast : false
111
- matrix :
112
- os :
113
- - ubuntu-latest
114
- node-version :
115
- - 18
100
+ runs-on : ubuntu-latest
116
101
117
102
steps :
118
103
- name : Git Checkout
@@ -133,10 +118,10 @@ jobs:
133
118
restore-keys : |
134
119
${{ runner.os }}-yarn-
135
120
136
- - name : Use Node.js ${{ matrix.node-version }}
121
+ - name : Use Node.js ${{ env.NODE_VERSION }}
137
122
uses : actions/setup-node@v4
138
123
with :
139
- node-version : ${{ matrix.node-version }}
124
+ node-version : ${{ env.NODE_VERSION }}
140
125
cache : " yarn"
141
126
142
127
- name : Install Deps
@@ -146,29 +131,21 @@ jobs:
146
131
run : yarn typecheck
147
132
148
133
analyze :
149
- runs-on : ${{ matrix.os }}
134
+ runs-on : ubuntu-latest
150
135
151
136
permissions :
152
137
actions : read
153
138
contents : read
154
139
security-events : write
155
140
156
- strategy :
157
- fail-fast : false
158
- matrix :
159
- os :
160
- - ubuntu-latest
161
- language :
162
- - javascript
163
-
164
141
steps :
165
142
- name : Git Checkout
166
143
uses : actions/checkout@v4
167
144
168
145
- name : Initialize CodeQL
169
146
uses : github/codeql-action/init@v3
170
147
with :
171
- languages : ${{ matrix.language }}
148
+ languages : javascript
172
149
173
150
- name : Autobuild
174
151
uses : github/codeql-action/autobuild@v3
@@ -183,15 +160,7 @@ jobs:
183
160
- analyze
184
161
- test
185
162
186
- runs-on : ${{ matrix.os }}
187
-
188
- strategy :
189
- fail-fast : false
190
- matrix :
191
- os :
192
- - ubuntu-latest
193
- node-version :
194
- - 18
163
+ runs-on : ubuntu-latest
195
164
196
165
steps :
197
166
- name : Git Checkout
@@ -212,10 +181,10 @@ jobs:
212
181
restore-keys : |
213
182
${{ runner.os }}-yarn-
214
183
215
- - name : Use Node.js ${{ matrix.node-version }}
184
+ - name : Use Node.js ${{ env.NODE_VERSION }}
216
185
uses : actions/setup-node@v4
217
186
with :
218
- node-version : ${{ matrix.node-version }}
187
+ node-version : ${{ env.NODE_VERSION }}
219
188
cache : " yarn"
220
189
221
190
- name : Install Deps
@@ -226,7 +195,7 @@ jobs:
226
195
227
196
- name : Deploy Docs
228
197
uses : peaceiris/actions-gh-pages@v3
229
- if : matrix.node-version == 18 && github.ref == 'refs/heads/main'
198
+ if : github.ref == 'refs/heads/main'
230
199
with :
231
200
github_token : ${{ secrets.GITHUB_TOKEN }}
232
201
publish_dir : ./src/.vitepress/dist
0 commit comments