This repository was archived by the owner on Feb 17, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
118 lines (108 loc) · 2.9 KB
/
Copy pathjustfile
File metadata and controls
118 lines (108 loc) · 2.9 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
set dotenv-load := true
root_dir := justfile_directory()
deps: deps-root
deps-root:
pnpm install
lint target="all":
#!/usr/bin/env bash
set -euox pipefail
case "{{ target }}" in
all)
just lint justfile
just lint config
just lint go
;;
justfile)
just --fmt --unstable
;;
config)
npx prettier --write --cache "**/*.{json,yml,yaml,md}"
;;
go)
cd {{ root_dir }} && gofmt -w ./pkg
;;
*)
echo "Unknown target: {{ target }}"
exit 1
;;
esac
lint-file file:
#!/usr/bin/env bash
set -euo pipefail
case "{{ file }}" in
*/justfile|*Justfile)
just --fmt --unstable
;;
*.json|*.yml|*.yaml|*.md)
npx prettier --write --cache "{{ file }}"
;;
*.go)
gofmt -w "{{ file }}"
go vet "{{ file }}" 2>/dev/null || true
;;
*)
echo "No lint rule for: {{ file }}"
;;
esac
release:
#!/usr/bin/env bash
set -euo pipefail
echo "⚠️ WARNING: This will trigger a production release!"
echo ""
echo "GitHub Actions will automatically:"
echo " - Analyze commits to determine version bump"
echo " - Generate release notes"
echo " - Create tag and GitHub release"
echo " - Update CHANGELOG.md"
echo ""
echo "Progress: https://github.com/specvital/core/actions"
echo ""
read -p "Type 'yes' to continue: " confirm
if [ "$confirm" != "yes" ]; then
echo "Aborted."
exit 1
fi
git checkout release
git merge main
git push origin release
git checkout main
echo "✅ Release triggered! Check GitHub Actions for progress."
snapshot-update repo="all":
#!/usr/bin/env bash
set -euox pipefail
cd {{ root_dir }}
# Handle both "just snapshot-update prisma" and "just snapshot-update repo=prisma"
repo_name="{{ repo }}"
repo_name="${repo_name#repo=}"
if [ "$repo_name" = "all" ]; then
go test -tags integration ./tests/integration/... -v -timeout 15m -update
else
go test -tags integration ./tests/integration/... -v -timeout 15m -update -run "TestSingleFramework/$repo_name"
fi
just lint config
sync-docs:
baedal specvital/specvital.github.io/docs docs --exclude ".vitepress/**"
test target="all":
#!/usr/bin/env bash
set -euox pipefail
cd {{ root_dir }}
case "{{ target }}" in
all)
just test unit
just test integration
;;
unit)
go test ./...
;;
integration)
go test -tags integration ./tests/integration/... -v -timeout 15m
;;
*)
echo "Unknown target: {{ target }}"
echo "Available: unit, integration, all"
exit 1
;;
esac
# Scan a directory for tests (used by /validate-parser command)
scan path:
go run {{ root_dir }}/scripts/scan.go {{ path }}