-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix tests after main branch rename; drop common make
some tests were failing after renaming master branch to main. fixed. makefile: drop common-make includes; simplify make tasks gha: bump GHA actions versions and configure dependabot to automate updates
- Loading branch information
Showing
11 changed files
with
49 additions
and
355 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ dist/ | |
Attic | ||
.vscode/ | ||
/.idea/ | ||
cover.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
APP := autotag | ||
|
||
include scripts/make/common.mk | ||
include scripts/make/common-go.mk | ||
.PHONY: lint build test cov run | ||
|
||
build:: | ||
CGO_ENABLED=0 go build -o $(APP)/$(APP) $(APP)/*.go | ||
default: build | ||
|
||
snapshot: | ||
@goreleaser --rm-dist --snapshot --debug | ||
build: | ||
CGO_ENABLED=0 go build -trimpath -v -o $(APP)/$(APP) $(APP)/*.go | ||
|
||
lint: | ||
golangci-lint run -v ./... | ||
|
||
test: | ||
go test -cover -coverprofile=cover.out -v ./... | ||
|
||
.PHONY:: test-gha | ||
test-gha:: test-go ## for running unit tests on GitHub Actions | ||
cov: | ||
@echo "--- Coverage:" | ||
go tool cover -html=cover.out | ||
go tool cover -func cover.out | ||
|
||
snapshot: | ||
@goreleaser --rm-dist --snapshot --debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.