forked from u485349-coder/OpenFoundry
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
104 lines (74 loc) · 3.01 KB
/
justfile
File metadata and controls
104 lines (74 loc) · 3.01 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# OpenFoundry — `just` shim over the Makefile.
#
# The Makefile is the canonical task runner for this Go monorepo. This
# justfile exists only so users with `just` muscle memory don't get
# stuck. Every recipe delegates to `make <target>`.
#
# Previously this file ran `cargo` against the deleted Rust workspace.
# If you need that history, see git log before commit 2ec24d3.
#
# Run `just` with no args to list recipes; `just --evaluate` to inspect
# variables.
set dotenv-load := true
# ── Default ──────────────────────────────────────────────────────────
default:
@just --list
# ── Bootstrap ────────────────────────────────────────────────────────
# Install pinned dev tools (buf, golangci-lint, sqlc, gofumpt) into ./bin.
tools:
make tools
# ── Build ────────────────────────────────────────────────────────────
# Build all Go packages.
build:
make build
# Produce one binary per service into ./bin/.
build-services:
make build-services
# ── Test ─────────────────────────────────────────────────────────────
# Fast unit tests (no Docker, race detector + coverage).
test:
make test
# Integration tests (requires Docker for testcontainers).
test-integration:
make test-integration
# Open the HTML coverage report from the last `just test` run.
cover:
make cover
# ── Code generation ──────────────────────────────────────────────────
# Run all generators (proto + sqlc).
gen:
make gen
gen-proto:
make gen-proto
gen-sqlc:
make gen-sqlc
# ── Lint / format / hygiene ──────────────────────────────────────────
# Run golangci-lint with the project config.
lint:
make lint
# Apply gofumpt + gci.
fmt:
make fmt
# `go mod tidy`.
tidy:
make tidy
# `go vet`.
vet:
make vet
# ── Composite gates ──────────────────────────────────────────────────
# Full local CI gate (tidy + vet + lint + test). Run before pushing.
ci:
make ci
clean:
make clean
# ── GitOps (ArgoCD) ──────────────────────────────────────────────────
gitops-bootstrap:
make gitops-bootstrap
gitops-status:
make gitops-status
gitops-sync:
make gitops-sync
gitops-ui:
make gitops-ui
gitops-uninstall:
make gitops-uninstall