Skip to content

Commit 2e64e45

Browse files
committed
CI: use debian-based images, only test -race on amd64
debian-based images have gcc (needed for -race) and git (possible with alpine image but would need more install steps) go test -race is not supported on 386 Also, go test without -v, but list tests first: go-diskqueue tests produce a lot of distracting error logging output, and if a test fails, a pretty good amount of logging context is provided.
1 parent a14d574 commit 2e64e45

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- "amd64"
2222
- "386"
2323

24-
container: "golang:${{matrix.gover}}-alpine"
24+
container: "golang:${{matrix.gover}}"
2525
env:
2626
GOARCH: "${{matrix.goarch}}"
2727

@@ -30,8 +30,12 @@ jobs:
3030

3131
- name: test
3232
run: |
33-
GOMAXPROCS=1 go test -v
34-
GOMAXPROCS=4 go test -v -race
33+
go test -list Test
34+
GOMAXPROCS=1 go test
35+
if [ "$GOARCH" = "amd64" ]; then
36+
echo "With -race:"
37+
GOMAXPROCS=4 go test -race
38+
fi
3539
3640
- name: lint
3741
run: |

0 commit comments

Comments
 (0)