-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathJustfile
More file actions
33 lines (27 loc) · 979 Bytes
/
Justfile
File metadata and controls
33 lines (27 loc) · 979 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
# The first recipe is the default, mirroring the 'ALL' target.
default: generate test install
# Generate fixture descriptor set.
# In `just`, there isn't a direct equivalent to Make's file-based prerequisites.
# The `go generate` commands inherently use the necessary source files.
generate:
@echo "Generating fixture descriptor set"
go generate ./...
go generate ./internal/converter/testdata
# Run tests after generating files.
test: generate
go test -coverprofile=coverage.out -coverpkg=./internal/...,./converter/... ./...
# To see coverage report:
# go tool cover -html=coverage.out
lint:
golangci-lint run ./...
# Install the application binary.
install:
go install
# Build the application binary locally.
build:
go build -o protoc-gen-connect-openapi .
# Run buf to generate code from protobuf definitions.
buf-generate: install
buf generate --path internal/proto
clear-golden:
rm -rf internal/converter/testdata/*/output