tests: Parallelize grpcproxy tests

This commit is contained in:
Marek Siarkowicz
2022-01-28 12:00:03 +01:00
parent 682b867653
commit 099cffcaa0
2 changed files with 19 additions and 4 deletions

View File

@@ -7,7 +7,8 @@ jobs:
fail-fast: true
matrix:
target:
- linux-amd64-grpcproxy
- linux-amd64-grpcproxy-integration
- linux-amd64-grpcproxy-e2e
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
@@ -19,8 +20,12 @@ jobs:
run: |
echo "${TARGET}"
case "${TARGET}" in
linux-amd64-grpcproxy)
PASSES='build grpcproxy' CPU='4' COVER='false' RACE='true' ./test.sh 2>&1 | tee test.log
linux-amd64-grpcproxy-integration)
PASSES='build grpcproxy_integration' CPU='4' COVER='false' RACE='true' ./test.sh 2>&1 | tee test.log
! egrep "(--- FAIL:|FAIL:|DATA RACE|panic: test timed out|appears to have leaked)" -B50 -A10 test.log
;;
linux-amd64-grpcproxy-e2e)
PASSES='build grpcproxy_e2e' CPU='4' COVER='false' RACE='true' ./test.sh 2>&1 | tee test.log
! egrep "(--- FAIL:|FAIL:|DATA RACE|panic: test timed out|appears to have leaked)" -B50 -A10 test.log
;;
*)