fix: enable strict mode for CI

fixes: #15487

Signed-off-by: Wei Fu <fuweid89@gmail.com>
This commit is contained in:
Wei Fu
2023-03-18 11:24:04 +08:00
parent 284c312fd4
commit 3fc5fbeaa0
5 changed files with 41 additions and 23 deletions

View File

@@ -9,6 +9,8 @@ jobs:
with:
go-version: "1.19.7"
- run: |
set -euo pipefail
git config --global user.email "github-action@etcd.io"
git config --global user.name "Github Action"
gpg --batch --gen-key <<EOF

View File

@@ -25,6 +25,8 @@ jobs:
- env:
TARGET: ${{ matrix.target }}
run: |
set -euo pipefail
go version
echo ${GOROOT}
echo "${TARGET}"
@@ -58,8 +60,7 @@ jobs:
GO_BUILD_FLAGS='-v' GOARCH=s390x ./build
;;
linux-amd64-grpcproxy)
PASSES='build grpcproxy' CPU='4' RACE='true' ./test 2>&1 | tee test.log
! egrep "(--- FAIL:|DATA RACE|panic: test timed out|appears to have leaked)" -B50 -A10 test.log
PASSES='build grpcproxy' CPU='4' RACE='true' ./test
;;
linux-386-unit)
GOARCH=386 PASSES='unit' ./test