-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathjustfile
38 lines (29 loc) · 896 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
set quiet
_default: _help
_help:
just --list
# Format go files
fmt:
goimports -w .
# Lint go files
lint:
golangci-lint run -v
# Run tests
test:
go test -v -failfast -race -timeout 10m ./...
# Download go.mod dependencies
download:
echo "Download go.mod dependencies"
go mod download
# Check for vulnerabilities
vulncheck:
govulncheck ./...
# Generate latest SDK
generate:
go-sdk-gen generate --mod github.com/sumup/sumup-go --pkg sumup --name SumUp ./openapi.json
gomarkdoc --output DOCUMENTATION.md ./...
# Install development dependencies
install-tools:
command -v go-sdk-gen >/dev/null 2>&1 || go install github.com/sumup/go-sdk-gen@latest
command -v gomarkdoc >/dev/null 2>&1 || go install github.com/princjef/gomarkdoc/cmd/gomarkdoc@latest
command -v govulncheck >/dev/null 2>&1 || go install golang.org/x/vuln/cmd/govulncheck@latest