Skip to content

Commit 4ec790a

Browse files
committed
update CI to run unit tests, rollup fork, and host fork tests
1 parent 0004f3b commit 4ec790a

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

.github/workflows/test.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,22 @@ permissions:
1111
checks: read
1212
contents: read
1313
repository-projects: read
14-
14+
1515
jobs:
1616
solidity-base:
1717
uses: init4tech/actions/.github/workflows/solidity-base.yml@main
1818
with:
1919
gas-diff-tolerance: 2 # setting the gas diff tolerance to 2%
20+
fork-rollup:
21+
uses: init4tech/actions/.github/workflows/solidity-base.yml@main
22+
with:
23+
gas-diff-tolerance: 2 # setting the gas diff tolerance to 2%
24+
foundry-profile: rollup
25+
fork-url: ${{ vars.RU_RPC_URL }}
26+
fork-host:
27+
uses: init4tech/actions/.github/workflows/solidity-base.yml@main
28+
with:
29+
gas-diff-tolerance: 2 # setting the gas diff tolerance to 2%
30+
foundry-profile: host
31+
fork-url: ${{ vars.HOST_RPC_URL }}
32+

foundry.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,10 @@ out = "out"
44
libs = ["lib"]
55
evm_version = "cancun"
66

7-
# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options
7+
[profile.rollup]
8+
test= "test/rollup"
9+
10+
[profile.host]
11+
test= "test/host"
12+
13+
# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options

0 commit comments

Comments
 (0)