Add justfile
All checks were successful
timw4mail/gilo/pipeline/head This commit looks good

This commit is contained in:
Timothy Warren 2023-10-05 11:03:56 -04:00
parent 69709a1cb4
commit 74b59ed4fa
2 changed files with 30 additions and 0 deletions

3
.gitignore vendored
View File

@ -120,4 +120,7 @@ modules.xml
!.vscode/extensions.json
*.code-workspace
# binary
gilo
# End of https://www.toptal.com/developers/gitignore/api/go,jetbrains+all,vscode

27
justfile Normal file
View File

@ -0,0 +1,27 @@
# Lists the available actions
default:
@just --list
# Run all the tests
test:
go test ./... -v
_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