forked from blackstork-io/fabric
-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
36 lines (25 loc) · 811 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
default: build test-run
build:
goreleaser build --config ./.goreleaser-dev.yaml --single-target --snapshot --clean
test-run:
./dist/fabric render "document.hello" --source-dir ./examples/templates/basic_hello/ -v
format:
go mod tidy
gofumpt -w .
gci write --skip-generated -s standard -s default -s "prefix(github.com/blackstork-io/fabric)" .
format-extra: format
gofumpt -w -extra .
lint: format
golangci-lint run
test:
go test -timeout 10s -race -short -v ./...
test-pretty:
gotestsum --format dots-v2 -- -timeout 10s -race -short -v ./...
test-all:
go test -timeout 5m -race -v ./...
test-e2e:
go test -timeout 5m -race -v ./test/e2e/...
generate:
go generate ./...
generate-docs:
go run ./tools/docgen --version v0.4.2 --output ./docs/plugins/