-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJustfile
More file actions
49 lines (38 loc) · 986 Bytes
/
Justfile
File metadata and controls
49 lines (38 loc) · 986 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Format and lint Go code
check:
go fmt ./...
go vet ./...
# Run unit tests
unit:
go test -v ./...
# Run unit tests with race detector
test-race:
go test -race -v ./...
# Build all packages
build:
go build ./...
# Build the example
build-example:
go build -o target/echo ./examples/echo
# Run all tests
test-all: unit
# Clean build artifacts
clean:
rm -rf target/
rm -rf tests-integration/target/
go clean ./...
# Full CI check (format, lint, test)
ci: check unit
# Run the integration tests against the Rust implementation
# Requires: cargo, go
test-integration: build-integration-server
go test -v ./tests-integration/...
# Build the Rust integration test server
build-integration-server:
cargo build --manifest-path tests-integration/Cargo.toml
# Run the echo server example
run-server socket="/tmp/echo.sock":
go run ./examples/echo server {{socket}}
# Run the echo client example
run-client socket="/tmp/echo.sock":
go run ./examples/echo client {{socket}}