-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (38 loc) · 1.02 KB
/
Copy pathMakefile
File metadata and controls
38 lines (38 loc) · 1.02 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
.PHONY: install build fmt fmt-check test test-unit test-fork coverage snapshot anvil-fork deploy-local swap-local web-install web-dev web-test web-build ci
install:
forge install foundry-rs/[email protected] --no-git
forge install OpenZeppelin/[email protected] --no-git
npm --prefix web install
build:
forge build
fmt:
forge fmt
fmt-check:
forge fmt --check
test:
forge test
test-unit:
forge test --match-path 'test/unit/**'
test-fork:
@test -n "$$ARBITRUM_RPC_URL" || (echo "ARBITRUM_RPC_URL is required" && exit 1)
forge test --match-path 'test/fork/**' -vvv
coverage:
forge coverage --match-path 'test/unit/**'
snapshot:
forge snapshot --match-path 'test/unit/**'
anvil-fork:
./scripts/start-anvil-fork.sh
deploy-local:
./scripts/deploy-local.sh
swap-local:
./scripts/run-local-swap.sh
web-install:
npm --prefix web install
web-dev:
npm --prefix web run dev
web-test:
npm --prefix web run test
web-build:
npm --prefix web run build
ci: fmt-check build test-unit web-test web-build
npm --prefix web run lint