-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 765 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (26 loc) · 765 Bytes
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
.PHONY: snapshot
snapshot:
FOUNDRY_PROFILE=ci forge snapshot --match-path "test/gas/*.sol"
.PHONY: coverage
coverage:
forge coverage --report lcov --report summary
genhtml lcov.info -o coverage --branch-coverage --ignore-errors inconsistent --ignore-errors corrupt
open coverage/index.html
# CI pipeline
.PHONY: ci
ci: ci-fmt ci-lint ci-snapshot ci-build ci-test
.PHONY: solidity-fmt
ci-fmt:
FOUNDRY_PROFILE=ci forge fmt --check
.PHONY: solidity-lint
ci-lint:
FOUNDRY_PROFILE=ci forge lint
.PHONY: solidity-snapshot
ci-snapshot:
FOUNDRY_PROFILE=ci forge snapshot --match-path "test/gas/*.sol" --check --tolerance 1
.PHONY: solidity-build
ci-build:
FOUNDRY_PROFILE=ci forge build --sizes
.PHONY: solidity-test
ci-test:
FOUNDRY_PROFILE=ci forge test