Skip to content

Commit

Permalink
ci: update Tasfile default task
Browse files Browse the repository at this point in the history
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
  • Loading branch information
ilya-lesikov committed Aug 9, 2022
1 parent b39092f commit c99c901
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Taskfile.dist.yaml
Expand Up @@ -27,9 +27,20 @@ vars:
goReleaseLDFlags: "-s -w -X github.com/werf/werf/pkg/werf.Version={{.version}}"

tasks:
_format-and-build:
cmds:
- task: format
- task: build

_format-and-lint:
cmds:
- task: format
- task: lint

default:
deps:
- build
- _format-and-build
- _format-and-lint

_build:cgo:dev: &build_cgo_dev
cmds:
Expand Down Expand Up @@ -227,6 +238,7 @@ tasks:

format:
desc: 'Run all code formatters. Important vars: "paths".'
run: once
cmds:
- task: format:gci
- task: format:gofumpt
Expand Down

0 comments on commit c99c901

Please sign in to comment.