Skip to content

Commit

Permalink
chore: replace Makefile with Taskfile
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinJWendt committed Aug 8, 2024
1 parent 4d08410 commit a293b87
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,6 @@ experimenting

## CI assets
.templates

## Taskfile
.task
31 changes: 20 additions & 11 deletions Makefile β†’ Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,24 @@
# β”‚ β”‚
# β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

test:
@echo "# Running tests..."
@go test -v ./...
version: "3"

lint:
@echo "# Linting..."
@echo "## Go mod tidy..."
@go mod tidy
@echo "## Fixing whitespaces..."
@wsl --allow-cuddle-declarations --force-err-cuddling --force-case-trailing-whitespace 3 --fix ./...
@echo "## Running golangci-lint..."
@golangci-lint run
tasks:
test:
desc: Run all tests
cmds:
- go test ./...
tdd:
desc: Test Driven Development - Watch tests
watch: true
sources:
- "**/*.go"
cmds:
- go test ./...

lint:
desc: Run all linters
cmds:
- go mod tidy
- wsl --allow-cuddle-declarations --force-err-cuddling --force-case-trailing-whitespace 3 --fix ./...
- golangci-lint run

0 comments on commit a293b87

Please sign in to comment.