mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-01 22:31:15 +00:00
75513575be
* store dependency's in git * since we vendor ... rm tech-depts * aad make target 'vendor' to update vendor folder (manual task)
30 lines
463 B
YAML
30 lines
463 B
YAML
version: '2'
|
|
|
|
env:
|
|
GOFLAGS: -mod=vendor
|
|
|
|
tasks:
|
|
default:
|
|
deps: [test]
|
|
|
|
lint:
|
|
desc: Checks code style
|
|
cmds:
|
|
- gofmt -d -s *.go
|
|
- go vet ./...
|
|
silent: true
|
|
|
|
lint-fix:
|
|
desc: Fixes code style
|
|
cmds:
|
|
- gofmt -w -s *.go
|
|
|
|
test:
|
|
desc: Runs go tests
|
|
cmds:
|
|
- go test -race ./...
|
|
|
|
test-coverage:
|
|
desc: Runs go tests and calucates test coverage
|
|
cmds:
|
|
- go test -race -coverprofile=c.out ./...
|