github.com/drycc/workflow-cli@v1.5.3-0.20240322092846-d4ee25983af9/Makefile (about) 1 # the filepath to this repository, relative to $GOPATH/src 2 VERSION ?= canary 3 REPO_PATH := github.com/drycc/workflow-cli 4 DEV_ENV_IMAGE := ${DEV_REGISTRY}/drycc/go-dev 5 DEV_ENV_WORK_DIR := /opt/drycc/go/src/${REPO_PATH} 6 7 DIST_DIR ?= _dist 8 9 DEV_ENV_CMD := podman run --rm -v ${CURDIR}:${DEV_ENV_WORK_DIR} -w ${DEV_ENV_WORK_DIR} ${DEV_ENV_IMAGE} 10 11 bootstrap: 12 ${DEV_ENV_CMD} go mod vendor 13 14 # This is supposed to be run within a container 15 build: 16 ${DEV_ENV_CMD} scripts/build ${VERSION} 17 18 test-style: 19 ${DEV_ENV_CMD} lint 20 21 test-cover: 22 ${DEV_ENV_CMD} test-cover.sh 23 24 test: build test-style test-cover 25 ${DEV_ENV_CMD} go test -race -cover -coverprofile=coverage.txt -covermode=atomic ./...