Set up Mage build targets

Add magefiles/magefile.go with build automation targets:
- Test() - runs go test -v ./...
- Coverage() - runs tests with coverage profile output
- Lint() - runs staticcheck for static analysis
- Fmt() - formats all Go source files with gofmt
- Vet() - runs go vet for code analysis
- Check() - runs all quality checks in sequence (fmt, vet, lint, test)
- Clean() - removes build artifacts

Update magefiles/go.mod with github.com/magefile/mage dependency.

Closes checkvist-api-8q3
This commit is contained in:
Oliver Jakoubek 2026-01-14 13:33:14 +01:00
commit bf4d899eb8
4 changed files with 62 additions and 1 deletions

View file

@ -1,3 +1,5 @@
module code.beautifulmachines.dev/jakoubek/checkvist-api/magefiles
go 1.21
require github.com/magefile/mage v1.15.0