Skip to content

Commit

Permalink
tests: fix GitHub Actions CI failures
Browse files Browse the repository at this point in the history
  • Loading branch information
ploxiln committed Nov 6, 2020
1 parent 500eae6 commit 04acce5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
GOPATH: "${{github.workspace}}/go"
GOARCH: "${{matrix.goarch}}"
SRCDIR: "go/src/github.com/nsqio/nsq"
GO111MODULE: "on" # only needed up to go-1.12

steps:
- uses: actions/checkout@v2
Expand Down
7 changes: 6 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
set -e

GOMAXPROCS=1 go test -timeout 90s ./...
GOMAXPROCS=4 go test -timeout 90s -race ./...

if [ amd64 == "$GOARCH" ] || [ arm64 == "$GOARCH" ]; then
# go test: -race is only supported on linux/amd64, linux/ppc64le,
# linux/arm64, freebsd/amd64, netbsd/amd64, darwin/amd64 and windows/amd64
GOMAXPROCS=4 go test -timeout 90s -race ./...
fi

# no tests, but a build is something
for dir in apps/*/ bench/*/; do
Expand Down

0 comments on commit 04acce5

Please sign in to comment.