2023-10-05 11:03:56 -04:00
|
|
|
# Lists the available actions
|
|
|
|
default:
|
|
|
|
@just --list
|
|
|
|
|
|
|
|
# Run all the tests
|
|
|
|
test:
|
2023-10-06 15:23:01 -04:00
|
|
|
go test ./...
|
2023-10-05 11:03:56 -04:00
|
|
|
|
|
|
|
_cover:
|
|
|
|
go test ./... -coverprofile=coverage.out
|
|
|
|
|
|
|
|
# Calculate code coverage
|
|
|
|
coverage: _cover
|
|
|
|
go tool cover -html=coverage.out
|
|
|
|
|
|
|
|
# Cleanup generated files
|
|
|
|
clean:
|
|
|
|
rm -f gilo
|
|
|
|
rm -f coverage.out
|
|
|
|
|
|
|
|
# Run the autoformatter on all files
|
|
|
|
format:
|
|
|
|
go fmt ./...
|
|
|
|
|
|
|
|
# Build the binary
|
|
|
|
gilo:
|
|
|
|
go build
|