Skip to content

Commit 281c4c9

Browse files
committed
Split up go-race and go-pg
1 parent d710cf7 commit 281c4c9

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ jobs:
255255
files: ./gotests.coverage
256256
flags: unittest-go-${{ matrix.os }}
257257

258-
test-go-psql:
258+
test-go-pg:
259259
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
260260
# This timeout must be greater than the timeout set by `go test` in
261261
# `make test-postgres` to ensure we receive a trace of running
@@ -311,6 +311,23 @@ jobs:
311311
files: ./gotests.coverage
312312
flags: unittest-go-postgres-linux
313313

314+
test-go-race:
315+
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
316+
timeout-minutes: 25
317+
steps:
318+
- uses: actions/checkout@v3
319+
320+
- uses: ./.github/actions/setup-go
321+
322+
- uses: hashicorp/setup-terraform@v2
323+
with:
324+
terraform_version: 1.1.9
325+
terraform_wrapper: false
326+
327+
- name: Run Tests
328+
run: |
329+
go test -race ./...
330+
314331
deploy:
315332
name: "deploy"
316333
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ test-postgres: test-clean test-postgres-docker
615615
--packages="./..." -- \
616616
-covermode=atomic -coverprofile="gotests.coverage" -timeout=20m \
617617
-coverpkg=./... \
618-
-race -failfast
618+
-failfast
619619
.PHONY: test-postgres
620620

621621
test-postgres-docker:

0 commit comments

Comments
 (0)