-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: bump deps, fix lint errors (#190)
This commit includes the following changes: 1. Some dependencies were bumped to newer versions 2. The build will now lint-check integration tests and examples 3. Changes to allow the int tests and examples to lint-check cleanly
- Loading branch information
Showing
35 changed files
with
823 additions
and
777 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,30 @@ | ||
# Makefile to build the project | ||
GO=go | ||
LINT=golangci-lint | ||
GOSEC=gosec | ||
|
||
COVERAGE = -coverprofile=coverage.txt -covermode=atomic | ||
|
||
all: tidy test lint | ||
travis-ci: test-cov lint scan-gosec tidy | ||
|
||
test: | ||
go test `go list ./...` | ||
${GO} test `${GO} list ./...` | ||
|
||
test-cov: | ||
go test `go list ./...` ${COVERAGE} | ||
${GO} test `${GO} list ./...` ${COVERAGE} | ||
|
||
test-int: | ||
go test `go list ./...` -tags=integration | ||
${GO} test `${GO} list ./...` -tags=integration | ||
|
||
test-int-cov: | ||
go test `go list ./...` -tags=integration ${COVERAGE} | ||
${GO} test `${GO} list ./...` -tags=integration ${COVERAGE} | ||
|
||
lint: | ||
golangci-lint run | ||
${LINT} run --build-tags=integration,examples | ||
|
||
scan-gosec: | ||
gosec ./... | ||
${GOSEC} ./... | ||
|
||
tidy: | ||
go mod tidy | ||
${GO} mod tidy |
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
Oops, something went wrong.