31
31
32
32
jobs :
33
33
lint :
34
- runs-on : ${{ github.repository_owner == 'coder' && 'ubuntu-latest-8-cores ' || 'ubuntu-latest' }}
34
+ runs-on : ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204 ' || 'ubuntu-latest' }}
35
35
steps :
36
36
- name : Checkout
37
37
uses : actions/checkout@v3
38
38
39
39
# Install Go!
40
- - uses : actions /setup-go@v4
40
+ - uses : buildjet /setup-go@v4
41
41
with :
42
42
go-version : ${{ env.CODER_GO_VERSION }}
43
+ cache : true
43
44
44
45
# Check for any typos!
45
46
- name : Check for typos
69
70
# Lint our dashboard!
70
71
- name : Cache node_modules
71
72
id : cache-node
72
- uses : actions /cache@v3
73
+ uses : buildjet /cache@v3
73
74
with :
74
75
path : |
75
76
**/node_modules
@@ -132,15 +133,15 @@ jobs:
132
133
133
134
gen :
134
135
timeout-minutes : 8
135
- runs-on : ${{ github.repository_owner == 'coder' && 'ubuntu-latest-8-cores ' || 'ubuntu-latest' }}
136
+ runs-on : ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204 ' || 'ubuntu-latest' }}
136
137
needs : changes
137
138
if : needs.changes.outputs.docs-only == 'false'
138
139
steps :
139
140
- uses : actions/checkout@v3
140
141
141
142
- name : Cache Node
142
143
id : cache-node
143
- uses : actions /cache@v3
144
+ uses : buildjet /cache@v3
144
145
with :
145
146
path : |
146
147
**/node_modules
@@ -152,7 +153,7 @@ jobs:
152
153
- name : Install node_modules
153
154
run : ./scripts/yarn_install.sh
154
155
155
- - uses : actions /setup-go@v4
156
+ - uses : buildjet /setup-go@v4
156
157
with :
157
158
cache : false
158
159
go-version : ${{ env.CODER_GO_VERSION }}
@@ -164,13 +165,13 @@ jobs:
164
165
echo "GOMODCACHE=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT
165
166
166
167
- name : Go Build Cache
167
- uses : actions /cache@v3
168
+ uses : buildjet /cache@v3
168
169
with :
169
170
path : ${{ steps.go-cache-paths.outputs.GOCACHE }}
170
171
key : ${{ github.job }}-go-build-${{ hashFiles('**/go.sum', '**/**.go') }}
171
172
172
173
- name : Go Mod Cache
173
- uses : actions /cache@v3
174
+ uses : buildjet /cache@v3
174
175
with :
175
176
path : ${{ steps.go-cache-paths.outputs.GOMODCACHE }}
176
177
key : ${{ github.job }}-go-mod-${{ hashFiles('**/go.sum') }}
@@ -220,7 +221,7 @@ jobs:
220
221
221
222
- name : Cache Node
222
223
id : cache-node
223
- uses : actions /cache@v3
224
+ uses : buildjet /cache@v3
224
225
with :
225
226
path : |
226
227
**/node_modules
@@ -244,18 +245,18 @@ jobs:
244
245
run : ./scripts/check_unstaged.sh
245
246
246
247
test-go :
247
- runs-on : ${{ matrix.os == 'ubuntu-latest' && github.repository_owner == 'coder' && 'ubuntu-latest-8-cores ' || matrix.os == 'windows-2022 ' && github.repository_owner == 'coder' && 'windows-latest-8-cores'|| matrix.os }}
248
+ runs-on : ${{ matrix.os == 'ubuntu-latest' && github.repository_owner == 'coder' && 'buildjet-4vcpu-ubuntu-2204 ' || matrix.os == 'windows-2019 ' && github.repository_owner == 'coder' && 'windows-latest-8-cores'|| matrix.os }}
248
249
timeout-minutes : 20
249
250
strategy :
250
251
matrix :
251
252
os :
252
253
- ubuntu-latest
253
254
- macos-latest
254
- - windows-2022
255
+ - windows-2019
255
256
steps :
256
257
- uses : actions/checkout@v3
257
258
258
- - uses : actions /setup-go@v4
259
+ - uses : buildjet /setup-go@v4
259
260
with :
260
261
cache : false
261
262
go-version : ${{ env.CODER_GO_VERSION }}
@@ -267,13 +268,13 @@ jobs:
267
268
echo "GOMODCACHE=$(go env GOMODCACHE)" >> ${{ runner.os == 'Windows' && '$env:' || '$' }}GITHUB_OUTPUT
268
269
269
270
- name : Go Build Cache
270
- uses : actions /cache@v3
271
+ uses : buildjet /cache@v3
271
272
with :
272
273
path : ${{ steps.go-cache-paths.outputs.GOCACHE }}
273
274
key : ${{ runner.os }}-go-build-${{ hashFiles('**/go.**', '**.go') }}
274
275
275
276
- name : Go Mod Cache
276
- uses : actions /cache@v3
277
+ uses : buildjet /cache@v3
277
278
with :
278
279
path : ${{ steps.go-cache-paths.outputs.GOMODCACHE }}
279
280
key : ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
@@ -335,7 +336,7 @@ jobs:
335
336
flags : unittest-go-${{ matrix.os }}
336
337
337
338
test-go-psql :
338
- runs-on : ${{ github.repository_owner == 'coder' && 'ubuntu-latest-8-cores ' || 'ubuntu-latest' }}
339
+ runs-on : ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204 ' || 'ubuntu-latest' }}
339
340
# This timeout must be greater than the timeout set by `go test` in
340
341
# `make test-postgres` to ensure we receive a trace of running
341
342
# goroutines. Setting this to the timeout +5m should work quite well
@@ -344,7 +345,7 @@ jobs:
344
345
steps :
345
346
- uses : actions/checkout@v3
346
347
347
- - uses : actions /setup-go@v4
348
+ - uses : buildjet /setup-go@v4
348
349
with :
349
350
cache : false
350
351
go-version : ${{ env.CODER_GO_VERSION }}
@@ -356,13 +357,13 @@ jobs:
356
357
echo "GOMODCACHE=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT
357
358
358
359
- name : Go Build Cache
359
- uses : actions /cache@v3
360
+ uses : buildjet /cache@v3
360
361
with :
361
362
path : ${{ steps.go-cache-paths.outputs.GOCACHE }}
362
363
key : ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum', '**/**.go') }}
363
364
364
365
- name : Go Mod Cache
365
- uses : actions /cache@v3
366
+ uses : buildjet /cache@v3
366
367
with :
367
368
path : ${{ steps.go-cache-paths.outputs.GOMODCACHE }}
368
369
key : ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
@@ -413,7 +414,7 @@ jobs:
413
414
414
415
deploy :
415
416
name : " deploy"
416
- runs-on : ${{ github.repository_owner == 'coder' && 'ubuntu-latest-8-cores ' || 'ubuntu-latest' }}
417
+ runs-on : ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204 ' || 'ubuntu-latest' }}
417
418
timeout-minutes : 30
418
419
needs : changes
419
420
if : |
@@ -436,7 +437,7 @@ jobs:
436
437
- name : Set up Google Cloud SDK
437
438
uses : google-github-actions/setup-gcloud@v1
438
439
439
- - uses : actions /setup-go@v4
440
+ - uses : buildjet /setup-go@v4
440
441
with :
441
442
cache : false
442
443
go-version : ${{ env.CODER_GO_VERSION }}
@@ -448,20 +449,20 @@ jobs:
448
449
echo "GOMODCACHE=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT
449
450
450
451
- name : Go Build Cache
451
- uses : actions /cache@v3
452
+ uses : buildjet /cache@v3
452
453
with :
453
454
path : ${{ steps.go-cache-paths.outputs.GOCACHE }}
454
455
key : ${{ runner.os }}-release-go-build-${{ hashFiles('**/go.sum') }}
455
456
456
457
- name : Go Mod Cache
457
- uses : actions /cache@v3
458
+ uses : buildjet /cache@v3
458
459
with :
459
460
path : ${{ steps.go-cache-paths.outputs.GOMODCACHE }}
460
461
key : ${{ runner.os }}-release-go-mod-${{ hashFiles('**/go.sum') }}
461
462
462
463
- name : Cache Node
463
464
id : cache-node
464
- uses : actions /cache@v3
465
+ uses : buildjet /cache@v3
465
466
with :
466
467
path : |
467
468
**/node_modules
@@ -532,14 +533,14 @@ jobs:
532
533
retention-days : 7
533
534
534
535
test-js :
535
- runs-on : ${{ github.repository_owner == 'coder' && 'ubuntu-latest-8-cores ' || 'ubuntu-latest' }}
536
+ runs-on : ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204 ' || 'ubuntu-latest' }}
536
537
timeout-minutes : 20
537
538
steps :
538
539
- uses : actions/checkout@v3
539
540
540
541
- name : Cache Node
541
542
id : cache-node
542
- uses : actions /cache@v3
543
+ uses : buildjet /cache@v3
543
544
with :
544
545
path : |
545
546
**/node_modules
@@ -548,7 +549,7 @@ jobs:
548
549
restore-keys : |
549
550
js-${{ runner.os }}-
550
551
551
- - uses : actions /setup-node@v3
552
+ - uses : buildjet /setup-node@v3
552
553
with :
553
554
node-version : " 16.16.0"
554
555
@@ -574,21 +575,21 @@ jobs:
574
575
needs :
575
576
- changes
576
577
if : needs.changes.outputs.docs-only == 'false'
577
- runs-on : ${{ github.repository_owner == 'coder' && 'ubuntu-latest-8-cores ' || 'ubuntu-latest' }}
578
+ runs-on : ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204 ' || 'ubuntu-latest' }}
578
579
timeout-minutes : 20
579
580
steps :
580
581
- uses : actions/checkout@v3
581
582
582
583
- name : Cache Node
583
584
id : cache-node
584
- uses : actions /cache@v3
585
+ uses : buildjet /cache@v3
585
586
with :
586
587
path : |
587
588
**/node_modules
588
589
.eslintcache
589
590
key : js-${{ runner.os }}-e2e-${{ hashFiles('**/yarn.lock') }}
590
591
591
- - uses : actions /setup-go@v4
592
+ - uses : buildjet /setup-go@v4
592
593
with :
593
594
cache : false
594
595
go-version : ${{ env.CODER_GO_VERSION }}
@@ -598,7 +599,7 @@ jobs:
598
599
terraform_version : 1.1.9
599
600
terraform_wrapper : false
600
601
601
- - uses : actions /setup-node@v3
602
+ - uses : buildjet /setup-node@v3
602
603
with :
603
604
node-version : " 16.16.0"
604
605
@@ -609,13 +610,13 @@ jobs:
609
610
echo "GOMODCACHE=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT
610
611
611
612
- name : Go Build Cache
612
- uses : actions /cache@v3
613
+ uses : buildjet /cache@v3
613
614
with :
614
615
path : ${{ steps.go-cache-paths.outputs.GOCACHE }}
615
616
key : ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
616
617
617
618
- name : Go Mod Cache
618
- uses : actions /cache@v3
619
+ uses : buildjet /cache@v3
619
620
with :
620
621
path : ${{ steps.go-cache-paths.outputs.GOMODCACHE }}
621
622
key : ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
@@ -654,7 +655,7 @@ jobs:
654
655
# only get 1 commit on shallow checkout.
655
656
fetch-depth : 0
656
657
657
- - uses : actions /setup-node@v3
658
+ - uses : buildjet /setup-node@v3
658
659
with :
659
660
node-version : " 16.16.0"
660
661
0 commit comments