summaryrefslogtreecommitdiff
path: root/Taskfile.yml
blob: 45eae662a7d1c04f1936e7fe90fad03ab29b204b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
version: '3'

tasks:
  build:
    cmds:
      - go build -o gorum cmd/gorum/main.go
  dev:
    deps: ["vet", "lint", "test"]
    cmds:
      - go build -race -o gorum cmd/gorum/main.go
  test:
    cmds:
      - go clean -testcache
      - go test ./... -v -race
  vet:
    cmds:
      - go vet **/*.go
  lint:
    cmds:
      - golangci-lint run
  lint-install:
    cmds:
      - go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest