3434 - name : Checkout
3535 uses : actions/checkout@v2
3636 - name : typos-action
37- uses : crate-ci/typos@v1.12.8
37+ uses : crate-ci/typos@v1.13.3
3838 with :
3939 config : .github/workflows/typos.toml
4040 - name : Fix Helper
@@ -89,14 +89,14 @@ jobs:
8989 style-lint-golangci :
9090 name : style/lint/golangci
9191 timeout-minutes : 5
92- runs-on : ubuntu-latest
92+ runs-on : ${{ github.repository_owner == 'coder' && ' ubuntu-latest-16-cores' || 'ubuntu-latest' }}
9393 steps :
9494 - uses : actions/checkout@v3
9595 - uses : actions/setup-go@v3
9696 with :
9797 go-version : " ~1.19"
9898 - name : golangci-lint
99- uses : golangci/golangci-lint-action@v3.2.0
99+ uses : golangci/golangci-lint-action@v3.3.1
100100 with :
101101 version : v1.48.0
102102
@@ -171,7 +171,7 @@ jobs:
171171 gen :
172172 name : " style/gen"
173173 timeout-minutes : 8
174- runs-on : ubuntu-latest
174+ runs-on : ${{ github.repository_owner == 'coder' && ' ubuntu-latest-16-cores' || 'ubuntu-latest' }}
175175 needs : changes
176176 if : needs.changes.outputs.docs-only == 'false'
177177 steps :
@@ -276,7 +276,7 @@ jobs:
276276
277277 test-go :
278278 name : " test/go"
279- runs-on : ${{ matrix.os }}
279+ runs-on : ${{ matrix.os == 'ubuntu-latest' && github.repository_owner == 'coder' && 'ubuntu-latest-16-cores' || matrix.os == 'windows-2022' && github.repository_owner == 'coder' && 'windows-latest-8-cores'|| matrix.os }}
280280 timeout-minutes : 20
281281 strategy :
282282 matrix :
@@ -315,7 +315,7 @@ jobs:
315315 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
316316 with :
317317 repo : gotestyourself/gotestsum
318- tag : v1.7.0
318+ tag : v1.8.2
319319
320320 - uses : hashicorp/setup-terraform@v2
321321 with :
@@ -336,11 +336,7 @@ jobs:
336336 echo ::set-output name=cover::false
337337 fi
338338 set -x
339- test_timeout=5m
340- if [[ "${{ matrix.os }}" == windows* ]]; then
341- test_timeout=10m
342- fi
343- gotestsum --junitfile="gotests.xml" --packages="./..." -- -parallel=8 -timeout=$test_timeout -short -failfast $COVERAGE_FLAGS
339+ gotestsum --junitfile="gotests.xml" --packages="./..." --debug -- -parallel=8 -timeout=3m -short -failfast $COVERAGE_FLAGS
344340
345341 - uses : codecov/codecov-action@v3
346342 # This action has a tendency to error out unexpectedly, it has
@@ -356,7 +352,7 @@ jobs:
356352
357353 test-go-postgres :
358354 name : " test/go/postgres"
359- runs-on : ubuntu-latest
355+ runs-on : ${{ github.repository_owner == 'coder' && ' ubuntu-latest-16-cores' || 'ubuntu-latest' }}
360356 # This timeout must be greater than the timeout set by `go test` in
361357 # `make test-postgres` to ensure we receive a trace of running
362358 # goroutines. Setting this to the timeout +5m should work quite well
@@ -393,7 +389,7 @@ jobs:
393389 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
394390 with :
395391 repo : gotestyourself/gotestsum
396- tag : v1.7.0
392+ tag : v1.8.2
397393
398394 - uses : hashicorp/setup-terraform@v2
399395 with :
@@ -417,7 +413,7 @@ jobs:
417413
418414 deploy :
419415 name : " deploy"
420- runs-on : ubuntu-latest
416+ runs-on : ${{ github.repository_owner == 'coder' && ' ubuntu-latest-16-cores' || 'ubuntu-latest' }}
421417 timeout-minutes : 30
422418 needs : changes
423419 if : |
@@ -432,7 +428,7 @@ jobs:
432428 fetch-depth : 0
433429
434430 - name : Authenticate to Google Cloud
435- uses : google-github-actions/auth@v0
431+ uses : google-github-actions/auth@v1
436432 with :
437433 workload_identity_provider : projects/573722524737/locations/global/workloadIdentityPools/github/providers/github
438434 service_account : coder-ci@coder-dogfood.iam.gserviceaccount.com
@@ -514,7 +510,7 @@ jobs:
514510
515511 test-js :
516512 name : " test/js"
517- runs-on : ubuntu-latest
513+ runs-on : ${{ github.repository_owner == 'coder' && ' ubuntu-latest-16-cores' || 'ubuntu-latest' }}
518514 timeout-minutes : 20
519515 steps :
520516 - uses : actions/checkout@v3
@@ -674,3 +670,23 @@ jobs:
674670 buildScriptName : " storybook:build"
675671 projectToken : 695c25b6cb65
676672 workingDir : " ./site"
673+ markdown-link-check :
674+ runs-on : ubuntu-latest
675+ steps :
676+ - uses : actions/checkout@master
677+ # For the main branch:
678+ - if : github.ref == 'refs/heads/main' && !github.event.pull_request.head.repo.fork
679+ uses : gaurav-nelson/github-action-markdown-link-check@v1
680+ with :
681+ use-quiet-mode : yes
682+ use-verbose-mode : yes
683+ config-file : .github/workflows/mlc_config.json
684+ # For pull requests:
685+ - if : github.ref != 'refs/heads/main' || github.event.pull_request.head.repo.fork
686+ uses : gaurav-nelson/github-action-markdown-link-check@v1
687+ with :
688+ use-quiet-mode : yes
689+ use-verbose-mode : yes
690+ check-modified-files-only : yes
691+ base-branch : main
692+ config-file : .github/workflows/mlc_config.json
0 commit comments