-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
93 lines (77 loc) · 2.2 KB
/
Taskfile.yml
File metadata and controls
93 lines (77 loc) · 2.2 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
version: "3"
dotenv:
- .env
- .env.local
vars:
BIN: hyperliquid
LOCAL_BIN: "{{.HOME}}/.local/bin/hyperliquid"
tasks:
default:
desc: List available tasks
cmds:
- task --list
fmt:
desc: Check Rust formatting
cmds:
- cargo fmt --check
clippy:
desc: Run clippy with warnings denied
cmds:
- cargo clippy -- -D warnings
test:
desc: Run the Rust test suite
cmds:
- cargo test
contracts:
desc: Run command/schema/registry/dry-run characterization contract tests
cmds:
- cargo test --test command_contracts --test schema_contracts --test registry_contracts --test dry_run_contracts --test output_contracts
build:
desc: Build the release hyperliquid binary
cmds:
- cargo build --release --bin {{.BIN}}
bind:
desc: Bind ~/.local/bin/hyperliquid to the release binary
deps:
- build
cmds:
- mkdir -p "{{.HOME}}/.local/bin"
- ln -sfn "{{.ROOT_DIR}}/target/release/{{.BIN}}" "{{.LOCAL_BIN}}"
- "{{.LOCAL_BIN}} --version"
qa:matrix:
desc: Run the broad live/dry-run QA command matrix against the QA wallet
deps:
- bind
cmds:
- HL_BIN="{{.LOCAL_BIN}}" ./scripts/qa-command-matrix.sh
qa:registry-rollout:
desc: Verify registry rollout and canary policy gates
cmds:
- bash scripts/qa-registry-rollout-gates.sh
qa:registry-canary-plan:
desc: Create a manual funded-live registry rollout canary checklist under .qa/
cmds:
- bash scripts/qa-registry-rollout-gates.sh --write-canary-plan
release:check:
desc: Check OSS release files and fail on local-only secret/artifact paths
cmds:
- bash scripts/pre-release-check.sh
qa:matrix:strict:
desc: Run QA matrix and fail on commands intentionally skipped by the sweep
deps:
- bind
cmds:
- HL_QA_STRICT_SKIPS=1 HL_BIN="{{.LOCAL_BIN}}" ./scripts/qa-command-matrix.sh
qa:all:
desc: Run all repeatable QA sweeps
cmds:
- task: qa:matrix
ci:
desc: Run local quality gates and the repeatable QA command matrix
cmds:
- task: fmt
- task: clippy
- task: test
- task: contracts
- task: qa:registry-rollout
- task: qa:all