-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump up version of external packages
- Loading branch information
1 parent
ae1b4aa
commit 2bf1218
Showing
7 changed files
with
411 additions
and
102 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 |
---|---|---|
|
@@ -16,4 +16,5 @@ | |
|
||
# Other files and directories | ||
dist/ | ||
.task/ | ||
*.bak |
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,50 @@ | ||
version: '3' | ||
|
||
tasks: | ||
default: | ||
cmds: | ||
- task: clean | ||
- task: test | ||
- task: nancy | ||
- task: graph | ||
|
||
build-all: | ||
desc: Build executable binary with GoReleaser. | ||
cmds: | ||
- goreleaser --snapshot --skip-publish --rm-dist | ||
|
||
test: | ||
desc: Test and lint. | ||
cmds: | ||
- go mod verify | ||
- go test ./... | ||
- docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:v1.41.1 golangci-lint run --enable gosec --timeout 3m0s ./... | ||
sources: | ||
- ./go.mod | ||
- '**/*.go' | ||
|
||
nancy: | ||
desc: Check vulnerability of external packages with Nancy. | ||
cmds: | ||
- depm list -j | docker run --rm -i sonatypecommunity/nancy:latest sleuth -n | ||
sources: | ||
- ./go.mod | ||
- '**/*.go' | ||
|
||
clean: | ||
desc: Initialize module and build cache, and remake go.sum file. | ||
cmds: | ||
- rm -f ./go.sum | ||
- go clean -cache | ||
- go clean -modcache | ||
- go mod tidy -v | ||
|
||
graph: | ||
desc: Make grapth of dependency modules. | ||
cmds: | ||
- depm m --dot --dot-config dot-config.toml | dot -Tpng -o ./dependency.png | ||
sources: | ||
- ./go.mod | ||
- '**/*.go' | ||
generates: | ||
- ./dependency.png |
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.