Skip to content

Commit

Permalink
ci: Adding sources to tasks to reduce duplicated work
Browse files Browse the repository at this point in the history
  • Loading branch information
CallumKerson committed Aug 7, 2023
1 parent 1ba1053 commit c92e6ce
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,34 @@ tasks:

#local tasks
go:mod-tidy:
- go mod tidy
cmds:
- go mod tidy
sources:
- go.mod
- go.sum

go:fmt:
- gofmt -l -s -w .
sources:
- "**/*.go"

go:lint:
cmds:
- golangci-lint run
sources:
- "**/*.go"

go:isort:
cmds:
- goimports-reviser -rm-unused -company-prefixes github.com/CallumKerson -project-name github.com/CallumKerson/Athenaeum -use-cache -format ./...
sources:
- "**/*.go"

test:
- go test ./...
cmds:
- go test ./...
sources:
- "**/*.go"

compile:
desc: "Compiles for the current OS and architecture"
Expand All @@ -57,6 +72,8 @@ tasks:
sh: git rev-parse HEAD
VERSION:
sh: echo "$(git describe --tags)-dev+$(git rev-parse --short HEAD)"
sources:
- "**/*.go"

linux-compile:
desc: "Compiles for Linux"
Expand Down

0 comments on commit c92e6ce

Please sign in to comment.