aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/stretchr/objx/Taskfile.yml
blob: 8a79e8d674c0dc48bcf9fd0c1f8ce5207d0e85f0 (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
version: '3'

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 calculates test coverage
    cmds:
      - go test -race -coverprofile=c.out ./...