Skip to content

Commit

Permalink
fix: update forge CI to include contract size checks (#402)
Browse files Browse the repository at this point in the history
* fix: add contract size check

* fix: ignore harness build size
  • Loading branch information
8sunyuan authored and wadealexc committed Feb 16, 2024
1 parent b71ceb4 commit 8b4c713
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/testinparallel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@ jobs:
with:
version: nightly

- name: Install forge dependencies
run: forge install
- name: Run Forge build
run: |
forge --version
forge build --sizes
id: build

- name: Run forge test for the file
run: forge test --match-path src/test/${{ matrix.file }} --no-match-contract FFI
Expand Down
3 changes: 2 additions & 1 deletion src/test/harnesses/EigenPodHarness.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
pragma solidity =0.8.12;

import "../../contracts/pods/EigenPod.sol";
import "forge-std/Test.sol";

contract EPInternalFunctions is EigenPod {
contract EPInternalFunctions is EigenPod, Test {

constructor(
IETHPOSDeposit _ethPOS,
Expand Down

0 comments on commit 8b4c713

Please sign in to comment.