-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
43 lines (33 loc) · 1.28 KB
/
Copy pathJustfile
File metadata and controls
43 lines (33 loc) · 1.28 KB
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
set shell := ["bash", "-euo", "pipefail", "-c"]
default:
@just --list
# Build the jig binary. Node is never required.
build:
mkdir -p bin
go build -o bin/jig ./cmd/jig
# Run all Go tests.
test:
go test -timeout 5m ./...
# Run the claim/heartbeat/sweep interleaving suite, the worker integration
# suite, and the phase-engine suite under the race detector (U2 + U3 + U4
# verification).
test-race:
go test -race -timeout 10m ./internal/controlplane/... ./internal/worker/... ./internal/engine/... ./internal/runtime/...
# Run Go static analysis.
vet:
go vet ./...
# Report Go files that need formatting.
format-check:
@test -z "$(gofmt -l cmd internal migrations)"
# Validate every stock definition without a server (U9).
definitions:
go run ./cmd/jig def validate examples/definitions/*.yaml
# Cross-compile release binaries into dist/ for linux and darwin on amd64
# and arm64. Pure-Go SQLite is what makes this one command (KTD3, R19).
release version="":
scripts/release.sh {{version}}
# Prove the worker never imports control-plane implementation code (KTD1).
boundary:
@! go list -deps ./internal/worker | grep -qx 'github.com/StructuPath/jig/internal/controlplane'
# Run the local and CI checks.
check: format-check vet boundary definitions test build