-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
254 additions
and
245 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
quiet: true | ||
skip-check: CKV_DOCKER_7 |
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,4 +1,4 @@ | ||
run: | ||
run: | ||
modules-download-mode: readonly | ||
show-stats: true | ||
|
||
|
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
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 |
---|---|---|
|
@@ -26,11 +26,13 @@ GO_PACKAGE_NAME := $(shell echo $(GIT_REMOTE_URL) | sed -e 's|^[email protected]:|g | |
GO_OSARCH = $(subst /, ,$@) | ||
GO_OS = $(word 1, $(GO_OSARCH)) | ||
GO_ARCH = $(word 2, $(GO_OSARCH)) | ||
GOBIN ?= $$(go env GOPATH)/bin | ||
|
||
# Conditional assignment. ('?=') | ||
# Can be overridden with "export" | ||
# Example: "export LD_LIBRARY_PATH=/path/to/my/senzing/g2/lib" | ||
# Example: "export LD_LIBRARY_PATH=/path/to/my/senzing-garage/g2/lib" | ||
|
||
LD_LIBRARY_PATH ?= /opt/senzing/g2/lib | ||
GOBIN ?= $(shell go env GOPATH)/bin | ||
|
||
# Export environment variables. | ||
|
||
|
@@ -58,6 +60,12 @@ hello-world: hello-world-osarch-specific | |
# Dependency management | ||
# ----------------------------------------------------------------------------- | ||
|
||
.PHONY: make-dependencies | ||
make-dependencies: | ||
@go install github.com/vladopajic/go-test-coverage/v2@latest | ||
@curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin v1.58.1 | ||
|
||
|
||
.PHONY: dependencies | ||
dependencies: | ||
@go get -u ./... | ||
|
@@ -108,11 +116,6 @@ test: test-osarch-specific | |
# Coverage | ||
# ----------------------------------------------------------------------------- | ||
|
||
.PHONY: install-go-test-coverage | ||
install-go-test-coverage: | ||
go install github.com/vladopajic/go-test-coverage/v2@latest | ||
|
||
|
||
.PHONY: coverage | ||
coverage: coverage-osarch-specific | ||
|
||
|
@@ -122,14 +125,13 @@ check-coverage: install-go-test-coverage | |
go test ./... -coverprofile=./cover.out -covermode=atomic -coverpkg=./... | ||
${GOBIN}/go-test-coverage --config=./.testcoverage.yml | ||
|
||
|
||
# ----------------------------------------------------------------------------- | ||
# Lint | ||
# ----------------------------------------------------------------------------- | ||
|
||
.PHONY: run-golangci-lint | ||
run-golangci-lint: | ||
golangci-lint run --config=.github/linters/.golangci.yml | ||
${GOBIN}/golangci-lint run --config=.github/linters/.golangci.yml | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Utility targets | ||
|
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 |
---|---|---|
|
@@ -2,4 +2,8 @@ | |
*/ | ||
package main | ||
|
||
func main() {} | ||
import "fmt" | ||
|
||
func main() { | ||
fmt.Println("Nothing to test") | ||
} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package main | ||
|
||
import ( | ||
"testing" | ||
) | ||
|
||
/* | ||
* The unit tests in this file simulate command line invocation. | ||
*/ | ||
func TestMain(test *testing.T) { | ||
_ = test | ||
main() | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.