mirror of
https://github.com/lukaszraczylo/semver-generator.git
synced 2026-06-09 23:09:24 +00:00
Skip update test in CI.
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
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
|
||||
|
||||
@@ -9,7 +15,7 @@ run: build
|
||||
@./semver-gen
|
||||
|
||||
test:
|
||||
@go test ./... -v -race -cover -coverprofile=coverage.out
|
||||
@go test ./... $(ADDITIONAL_BUILD_FLAGS) -v -race -cover -coverprofile=coverage.out
|
||||
|
||||
update:
|
||||
@go get -u ./...
|
||||
@go get -u ./...
|
||||
|
||||
@@ -26,6 +26,9 @@ func Test_checkLatestRelease(t *testing.T) {
|
||||
}
|
||||
|
||||
func Test_updatePackage(t *testing.T) {
|
||||
if testing.Short() {
|
||||
t.Skip("Skipping test in short / CI mode")
|
||||
}
|
||||
tests := []struct {
|
||||
name string
|
||||
want bool
|
||||
|
||||
Reference in New Issue
Block a user