@@ -12,7 +12,7 @@ concurrency:
12
12
jobs :
13
13
check-changes :
14
14
name : Check for Changes
15
- runs-on : self- ubuntu
15
+ runs-on : ubuntu-latest
16
16
if : github.event.pull_request.draft == false
17
17
outputs :
18
18
website_changes : ${{ steps.check-website.outputs.website_changes }}
56
56
57
57
pr-labeler :
58
58
name : Apply Labels
59
- runs-on : self- ubuntu
59
+ runs-on : ubuntu-latest
60
60
permissions :
61
61
contents : read
62
62
pull-requests : write
@@ -67,13 +67,20 @@ jobs:
67
67
68
68
spellcheck :
69
69
name : " Spellcheck Documentation"
70
- runs-on : self- ubuntu
70
+ runs-on : ubuntu-latest
71
71
needs : check-changes
72
72
if : needs.check-changes.outputs.website_changes == 'true'
73
73
steps :
74
74
- uses : actions/checkout@v2
75
75
name : Check out the code
76
76
77
+ - name : Install Node.js
78
+ uses : actions/setup-node@v2
79
+ with :
80
+ node-version : ' 20'
81
+ cache : ' yarn'
82
+ cache-dependency-path : ' website/yarn.lock'
83
+
77
84
- name : Install cspell
78
85
run : npm install -g cspell
79
86
@@ -84,11 +91,18 @@ jobs:
84
91
name : " Website Tests"
85
92
needs : check-changes
86
93
if : needs.check-changes.outputs.website_changes == 'true'
87
- runs-on : self- ubuntu
94
+ runs-on : ubuntu-latest
88
95
steps :
89
96
- name : Checkout Repository
90
97
uses : actions/checkout@v2
91
98
99
+ - name : Install Node.js
100
+ uses : actions/setup-node@v2
101
+ with :
102
+ node-version : ' 14.x'
103
+ cache : ' yarn'
104
+ cache-dependency-path : ' website/yarn.lock'
105
+
92
106
- name : Cache Yarn Packages
93
107
uses : actions/cache@v3
94
108
with :
@@ -109,7 +123,7 @@ jobs:
109
123
110
124
configure :
111
125
name : Generate Test Matrix
112
- runs-on : self- ubuntu
126
+ runs-on : ubuntu-latest
113
127
needs : check-changes
114
128
if : needs.check-changes.outputs.library_changes == 'true'
115
129
@@ -120,6 +134,13 @@ jobs:
120
134
- name : Checkout to repository
121
135
uses : actions/checkout@v3
122
136
137
+ - name : Install .NET
138
+ uses : actions/setup-dotnet@v3
139
+ with :
140
+ dotnet-version : |
141
+ 7.x
142
+ 8.x
143
+
123
144
- name : Generate Test Matrix
124
145
run : dotnet run --project ./.build -- GenerateMatrix
125
146
@@ -129,7 +150,7 @@ jobs:
129
150
130
151
library-tests :
131
152
name : Run ${{ matrix.name }}
132
- runs-on : self- ubuntu
153
+ runs-on : ubuntu-latest
133
154
needs : [configure, check-changes]
134
155
if : needs.check-changes.outputs.library_changes == 'true'
135
156
@@ -141,6 +162,14 @@ jobs:
141
162
- name : Checkout repository
142
163
uses : actions/checkout@v2
143
164
165
+ - name : Install .NET
166
+ uses : actions/setup-dotnet@v3
167
+ with :
168
+ dotnet-version : |
169
+ 6.x
170
+ 7.x
171
+ 8.x
172
+
144
173
- uses : actions/cache@v3
145
174
with :
146
175
path : ~/.nuget/packages
@@ -261,6 +290,14 @@ jobs:
261
290
- name : Checkout repository
262
291
uses : actions/checkout@v2
263
292
293
+ - name : Install .NET
294
+ uses : actions/setup-dotnet@v3
295
+ with :
296
+ dotnet-version : |
297
+ 6.x
298
+ 7.x
299
+ 8.x
300
+
264
301
- uses : actions/cache@v3
265
302
with :
266
303
path : ~/.nuget/packages
@@ -286,11 +323,20 @@ jobs:
286
323
name : Merge and Upload Coverage
287
324
needs : library-tests
288
325
if : always() && needs.library-tests.result != 'cancelled'
289
- runs-on : self- ubuntu
326
+ runs-on : ubuntu-latest
290
327
steps :
291
328
- name : Checkout repository
292
329
uses : actions/checkout@v2
293
330
331
+ - name : Install .NET
332
+ if : ${{ !cancelled() }}
333
+ uses : actions/setup-dotnet@v3
334
+ with :
335
+ dotnet-version : |
336
+ 6.x
337
+ 7.x
338
+ 8.x
339
+
294
340
- uses : actions/cache@v3
295
341
if : ${{ !cancelled() }}
296
342
with :
@@ -337,7 +383,7 @@ jobs:
337
383
name : " CI Status Check"
338
384
needs : [library-tests, website-tests]
339
385
if : always()
340
- runs-on : self- ubuntu
386
+ runs-on : ubuntu-latest
341
387
steps :
342
388
- name : Check if Library Tests or Website Tests failed
343
389
run : exit 1
0 commit comments