From 444d2513648189454e97937200e53ff69da8753d Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Tue, 10 Oct 2023 04:08:46 -0700 Subject: [PATCH] test.sh: Use autobahn on github actions --- ci/test.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/test.sh b/ci/test.sh index 1b3d6cc3..265e0a3a 100755 --- a/ci/test.sh +++ b/ci/test.sh @@ -3,6 +3,9 @@ set -eu cd -- "$(dirname "$0")/.." go install github.com/agnivade/wasmbrowsertest@latest +if [ "${CI-}" ]; then + export AUTOBAHN=1 +fi go test --race --timeout=1h --covermode=atomic --coverprofile=ci/out/coverage.prof --coverpkg=./... "$@" ./... sed -i.bak '/stringer\.go/d' ci/out/coverage.prof sed -i.bak '/nhooyr.io\/websocket\/internal\/test/d' ci/out/coverage.prof