-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathjustfile
More file actions
50 lines (43 loc) · 1.72 KB
/
Copy pathjustfile
File metadata and controls
50 lines (43 loc) · 1.72 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
default: help
import 'lib/just-foundry/justfile'
# Shadow the inherited `deploy` / `predeploy` recipes — this repo has no canonical single-deploy script
[private]
deploy *args:
@echo "This repo has no canonical deploy. Use 'just deploy-<component>' (e.g. 'just deploy-member-registry')." >&2
@exit 1
[private]
predeploy:
@echo "This repo has no canonical deploy. Use 'just predeploy-<component>' (e.g. 'just predeploy-member-registry')." >&2
@exit 1
# Deploy MemberRegistry to the currently active network.
[group('deploy')]
deploy-member-registry *args:
just run scripts/DeployMemberRegistry.s.sol:DeployMemberRegistry {{ args }}
# Dry-run the MemberRegistry deployment without broadcasting.
[group('deploy')]
predeploy-member-registry:
just dry-run scripts/DeployMemberRegistry.s.sol:DeployMemberRegistry
# Build Asciidoc documentation. Override `ref` for tagged-release re-runs (e.g. `just build-docs v1.4.0`).
[group('documentation')]
build-docs ref="main":
forge build --ast
GITHUB_REF="{{ ref }}" python3 scripts/build-docs.py
# Run the DAO upgrade test (v1.0.0 → v1.3.0 → v1.4.0)
[group('test')]
test-upgrade *args: test-upgrade-setup
FOUNDRY_PROFILE=upgrade forge test -vvv {{ args }}
# Set up the historical-source worktrees needed for the upgrade test.
[group('test')]
test-upgrade-setup:
#!/usr/bin/env bash
set -euo pipefail
if [ ! -d lib/osx-v1.0.0 ]; then
git worktree add lib/osx-v1.0.0 c2b9d23a96654e81f22fbf91e6f334ef26a370af
else
echo "lib/osx-v1.0.0 already exists, skipping."
fi
if [ ! -d lib/osx-v1.3.0 ]; then
git worktree add lib/osx-v1.3.0 6f35a85f6159ae62c68776c5cff57d4e8cfe1549
else
echo "lib/osx-v1.3.0 already exists, skipping."
fi