-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
59 lines (44 loc) · 997 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
default:
@just --choose
# Build project
build:
go build -v ./...
# Build project's docker infra
build-docker:
docker-compose build
# Run generation commands
generate:
go generate -v ./...
# Run unit tests
test:
go test -v ./...
# Run functional tests
test-func:
echo "add actual functional testing commands here"
# Lint cource code
lint:
golangci-lint run ./...
# Fix linter complaints automatically
lint-fix:
golangci-lint run --fix ./...
# Download dependencies
deps-download:
go mod download
# Update dependencies versions
deps-update:
go get -u ./...
# Garbage-collect dependencies
deps-gc:
go mod tidy
# Publish source code updates
publish: generate build lint
git push
# Enforce source code updates publishing
publish-force: generate build lint
git push --force-with-lease
# Install "pre-commit" hooks
pre-commit-install:
pre-commit install
# Update "pre-commit" hooks
pre-commit-update-hooks:
pre-commit autoupdate