Skip update test in CI.

This commit is contained in:
2022-02-10 14:39:38 +00:00
parent aec1e45e03
commit 53c059c091
2 changed files with 11 additions and 2 deletions
+8 -2
View File
@@ -1,4 +1,10 @@
LOCAL_VERSION?=$(shell semver-gen generate -l -c config-release.yaml | sed -e 's|SEMVER ||g') LOCAL_VERSION?=$(shell semver-gen generate -l -c config-release.yaml | sed -e 's|SEMVER ||g')
CI_RUN?=false
ADDITIONAL_BUILD_FLAGS=""
ifeq ($(CI_RUN), true)
ADDITIONAL_BUILD_FLAGS="-test.short"
endif
all: build all: build
@@ -9,7 +15,7 @@ run: build
@./semver-gen @./semver-gen
test: test:
@go test ./... -v -race -cover -coverprofile=coverage.out @go test ./... $(ADDITIONAL_BUILD_FLAGS) -v -race -cover -coverprofile=coverage.out
update: update:
@go get -u ./... @go get -u ./...
+3
View File
@@ -26,6 +26,9 @@ func Test_checkLatestRelease(t *testing.T) {
} }
func Test_updatePackage(t *testing.T) { func Test_updatePackage(t *testing.T) {
if testing.Short() {
t.Skip("Skipping test in short / CI mode")
}
tests := []struct { tests := []struct {
name string name string
want bool want bool