This commit is contained in:
parent
69709a1cb4
commit
74b59ed4fa
3
.gitignore
vendored
3
.gitignore
vendored
@ -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
27
justfile
Normal 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
|
Loading…
Reference in New Issue
Block a user