From a8d776812c42d1b96720351a10b2ea06c6a97268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Sat, 18 Mar 2023 11:30:20 +0000 Subject: [PATCH] CI: don't use `go test -race` on Windows It's just too slow, at 6m when linux does more and only takes 1m. Luckily, the vast majority of our code is not GOOS-specific, so running the race detector on linux is most likely enough. This should cut down Windows builds by over two minutes, as that's how long `go test -race` takes there. For consistency, drop -race on Mac as well. --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2a742d7f..47ad05a8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,9 +12,11 @@ jobs: with: go-version: ${{ matrix.go-version }} - uses: actions/checkout@v3 + - run: go test ./... - - run: go test -race ./... + - run: go test -race ./... + if: matrix.os == 'ubuntu-latest' - run: GOARCH=386 go test -count=1 ./... if: matrix.os == 'ubuntu-latest' - name: confirm tests with Bash 5.1