1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2024-12-27 01:33:39 +02:00
goreleaser/Taskfile.yml
Carlos Alexandro Becker 722343125a
test: remove bucket after test
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-22 01:19:37 -03:00

36 lines
719 B
YAML

version: '3'
tasks:
dev:
cmds:
- cp -f scripts/pre-commit.sh .git/hooks/pre-commit
setup:
cmds:
- go mod tidy
fmt:
cmds:
- gofumpt -w -s -l .
test:
vars:
TEST_OPTIONS: ''
TEST_PATTERN: '.'
SOURCE_FILES: './...'
env:
LC_ALL: C
cmds:
- 'go test {{.TEST_OPTIONS}} -failfast -race -coverpkg={{.SOURCE_FILES}} -covermode=atomic -coverprofile=coverage.txt {{.SOURCE_FILES}} -timeout=5m -run {{.TEST_PATTERN}}'
cover:
deps: [test]
cmds:
- go tool cover -html=coverage.txt
serve:
vars:
DOCKER: docker
cmds:
- '{{.DOCKER}} run --rm -it -p 8000:8000 -v $PWD/www:/docs docker.io/squidfunk/mkdocs-material'