-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathjustfile
More file actions
49 lines (37 loc) · 800 Bytes
/
justfile
File metadata and controls
49 lines (37 loc) · 800 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
# Default: list available recipes
default:
@just --list
# Build the binary
build:
go build -o git-wt ./cmd/git-wt/
# Run Go unit tests
test *args:
go test {{ args }} ./...
# Run Go unit tests with race detector
test-race *args:
go test -race {{ args }} ./...
# Run E2E tests (bats)
test-e2e *args:
bats {{ args }} tests/
# Run all tests (unit + E2E)
test-all: test test-e2e
# Run go vet
vet:
go vet ./...
# Format all files
fmt:
nix fmt
# Check formatting without modifying files
fmt-check:
nix fmt -- --fail-on-change
# Run all checks (vet + tests + race + E2E + format)
check: vet test-race test-e2e fmt-check
# Build with Nix
nix-build:
nix build
# Run nix flake check
nix-check:
nix flake check
# Remove build artifacts
clean:
rm -f git-wt