Browse Source

add formating

migrate-to-golang
Dennis Jekubczyk 3 years ago
parent
commit
c188ec7ebf
1 changed files with 9 additions and 3 deletions
  1. +9
    -3
      Taskfile.yml

+ 9
- 3
Taskfile.yml

@ -14,18 +14,24 @@ tasks:
world: world:
desc: run - literally - evertyhing ;) desc: run - literally - evertyhing ;)
cmds: cmds:
- task: format
- task: lint - task: lint
- task: test - task: test
- task: vendor - task: vendor
- task: build - task: build
test:
cmds: [ go test ./... ]
format:
desc: format go-sources
cmds: [ go fmt ./... ]
lint: lint:
desc: lint
desc: lint go-sources
cmds: [ third_party/golangci-lint/golangci-lint run ] cmds: [ third_party/golangci-lint/golangci-lint run ]
test:
cmds: [ go test ./... ]
build: build:
desc: build desc: build
cmds: [ docker image build -t jaedle/mirror-to-gitea:development -f build/Dockerfile . ] cmds: [ docker image build -t jaedle/mirror-to-gitea:development -f build/Dockerfile . ]

Loading…
Cancel
Save