aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/stretchr/objx/Taskfile.yml
blob: a749ac5492e5b68d1157e43f7159b64baafb2920 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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 ./...