github.com/openshift/installer@v1.4.17/hack/go-test.sh (about) 1 #!/bin/sh 2 # Example: ./hack/go-test.sh 3 4 if [ "$IS_CONTAINER" != "" ]; then 5 go test -short ./cmd/... ./data/... ./pkg/... "${@}" 6 else 7 podman run --rm \ 8 --env IS_CONTAINER=TRUE \ 9 --volume "${PWD}:/go/src/github.com/openshift/installer:z" \ 10 --workdir /go/src/github.com/openshift/installer \ 11 docker.io/golang:1.22 \ 12 ./hack/go-test.sh "${@}" 13 fi