Skip to content

Commit

Permalink
build: add setup task
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMarble committed Apr 7, 2022
1 parent 24288db commit 18504d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ If you found a bug and made a patch for it:

1. Make sure your changes pass the [pre-commit](https://pre-commit.com/)
[hooks](.pre-commit-config.yaml). You can install the hooks in your work
tree by running `pre-commit install` in your checked out copy.
tree by running `task setup` in your checked out copy.
1. Make sure all tests pass. If you add new functionality, add new tests.
1. Send a pull request, including a description of the fix (referencing an
existing issue if there's one).
Expand Down
11 changes: 5 additions & 6 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ env:


tasks:
dev:
desc: Setup pre-commit hook
setup:
desc: Prepare development environment
cmds:
- go install mvdan.cc/gofumpt@latest
- go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
- go install github.com/goreleaser/goreleaser@latest
- pre-commit install
- pre-commit install --hook-type commit-msg
setup:
desc: Install dependencies
cmds:
- go mod tidy

build:
Expand Down Expand Up @@ -56,7 +56,6 @@ tasks:
ci:
desc: Run all CI steps
cmds:
- task: setup
- task: lint
- task: test
- task: build
Expand Down

0 comments on commit 18504d6

Please sign in to comment.