-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
35 lines (26 loc) · 816 Bytes
/
Justfile
File metadata and controls
35 lines (26 loc) · 816 Bytes
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
set dotenv-load
default:
@just --list
pre-commit: tidy generate lint
pc: pre-commit
lint:
golangci-lint run --fix --build-tags it,local --timeout 5m
tidy:
go mod tidy
generate:
mkdir -p internal/generated
protoc --go_out=internal/generated --go_opt=paths=source_relative --go-grpc_out=./internal/generated --go-grpc_opt=paths=source_relative stargate.proto
g: generate
tests:
go test -race -covermode=atomic \
-coverprofile coverage.txt \
-tags it \
./...
cat coverage.txt | grep -v debug.go | grep -v "/machine/" | grep -v "pb.go" > coverage2.txt
mv coverage2.txt coverage.txt
release-local:
@goreleaser release --nightly --skip=publish --clean
release-ci:
@goreleaser release --nightly --clean
release:
@goreleaser release --clean