-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
48 lines (36 loc) · 954 Bytes
/
justfile
File metadata and controls
48 lines (36 loc) · 954 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
# Apex — Celestia namespace indexer
version := `git describe --tags --always --dirty 2>/dev/null || echo "dev"`
ldflags := "-s -w -X main.version=" + version
# Build the binary
build:
go build -trimpath -ldflags '{{ldflags}}' -o bin/apex ./cmd/apex
# Run all tests with race detection
test:
go test -race -count=1 -timeout 5m ./...
# Run linter
lint:
golangci-lint run ./...
# Format code
fmt:
gofumpt -w .
# Run the indexer
run *args: build
./bin/apex {{args}}
# Remove build artifacts
clean:
rm -rf bin/
# Tidy dependencies
tidy:
go mod tidy
# Verify go.mod/go.sum are tidy (for CI)
tidy-check:
go mod tidy
git diff --exit-code go.mod go.sum
# Generate protobuf code
proto:
buf generate
# Run all checks (CI equivalent)
check: tidy-check lint test build
# Run the Docker-backed submission e2e test in the isolated e2e module.
e2e-submission:
cd e2e && go test -race -count=1 -timeout 20m ./...