-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
47 lines (39 loc) · 1.27 KB
/
Justfile
File metadata and controls
47 lines (39 loc) · 1.27 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
# KCL Project Automation Justfile
# ────────────────
# Generate Go-based KCL schemas
# ────────────────
[working-directory: "kcl_common/schemas/custom/go"]
gen-go-schema:
go run schema-gen.go
# ────────────────
# Full environment setup
# ────────────────
all:
just gen-go-schema
fetch_helm_values
fetch_crds
# ────────────────
# Git commit shortcut
# ────────────────
git-commit MESSAGE:
git add .
git commit -m "{{MESSAGE}}"
git push
# ────────────────
# Run tests with optional filter
# ────────────────
[no-exit-message]
test K_EXPRESSION="":
@bash -c 'if [ "{{K_EXPRESSION}}" = "" ]; then pytest; else pytest -k "{{K_EXPRESSION}}"; fi'
# ────────────────
# Synth pipeline
# ────────────────
[working-directory: "scripts"]
check-kcl:
pytest src/kcl_tasks/check
clean-synth:
rm -rf synth_yaml/*
[working-directory: "scripts"]
check-synth:
pytest src/kcl_tasks/automation/kcl_synth_yaml.py
synth: check-kcl clean-synth check-synth