-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into upgrade_to_eigen_sdk_0.1.12
- Loading branch information
Showing
13 changed files
with
280 additions
and
604 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Daily Build And Test Dev | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
jobs: | ||
check: | ||
strategy: | ||
fail-fast: true | ||
defaults: | ||
run: | ||
working-directory: ./contracts | ||
|
||
name: Foundry project | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
|
||
- name: Run Forge build | ||
run: | | ||
forge --version | ||
forge build --sizes | ||
id: build | ||
|
||
- name: Run Forge tests | ||
run: | | ||
forge test -vvv | ||
id: test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Check Storage Layout | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
check_storage: | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
|
||
- name: "Generate and prepare the contract artifacts" | ||
run: | | ||
cd contracts && mkdir pr | ||
for file in $(find src -name '*.sol'); do | ||
contract_name=$(basename "$file" .sol) | ||
forge inspect "$contract_name" storage --pretty > pr/"$contract_name".md | ||
done | ||
- name: Checkout Base Branch | ||
env: | ||
BASE: ${{ github.event.pull_request.base.sha }} | ||
run: | | ||
git fetch origin $BASE | ||
git checkout $BASE | ||
- name: "Generate and prepare the contract artifacts" | ||
run: | | ||
cd contracts && mkdir base | ||
for file in $(find src -name '*.sol'); do | ||
contract_name=$(basename "$file" .sol) | ||
forge inspect "$contract_name" storage --pretty > base/"$contract_name".md | ||
done | ||
- name: Compare outputs | ||
run: | | ||
if ! diff --unified contracts/pr contracts/base; then | ||
# Note: We are only creating a warning because storage changes might be intentional but should be looked into | ||
# reach out to steven if you see a warning on this workflow and need help validating if it is expected or not | ||
echo "::warning::Differences found between PR and base storage layouts" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule eigenlayer-middleware
updated
48 files
Oops, something went wrong.