1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 15:47:14 +01:00
Files
installer/hack/go-test.sh
Rafael Fonseca 8d6187cd7f Use golang 1.18
2022-08-02 15:25:31 +02:00

14 lines
359 B
Bash
Executable File

#!/bin/sh
# Example: ./hack/go-test.sh
if [ "$IS_CONTAINER" != "" ]; then
go test ./cmd/... ./data/... ./pkg/... "${@}"
else
podman run --rm \
--env IS_CONTAINER=TRUE \
--volume "${PWD}:/go/src/github.com/openshift/installer:z" \
--workdir /go/src/github.com/openshift/installer \
docker.io/golang:1.18 \
./hack/go-test.sh "${@}"
fi