Skip to content

Commit

Permalink
Modified Taskfile.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
spiegel-im-spiegel committed Apr 19, 2021
1 parent 1cf702d commit 53efa93
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,38 @@ tasks:
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: Update modules, check vulns, test, and lint.
desc: Test and lint.
cmds:
- go mod verify
- depm list -j | docker run --rm -i sonatypecommunity/nancy:latest sleuth -n
- go test ./...
- docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:v1.39.0 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: Clean module and build cache, and remove go.sum file.
desc: Initialize module and build cache, and remake go.sum file.
cmds:
- rm -f ./go.sum
- go clean -cache
- go clean -modcache
- go mod verify
- go mod tidy -v

graph:
Expand Down

0 comments on commit 53efa93

Please sign in to comment.