Skip to content

Commit

Permalink
Merge branch 'main' into serial/doc-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
drewstone authored Nov 6, 2024
2 parents 6451320 + d8d78e8 commit 8804f8e
Show file tree
Hide file tree
Showing 199 changed files with 10,186 additions and 5,180 deletions.
59 changes: 57 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
run: forge update && cd blueprints/incredible-squaring-eigenlayer && forge build --root ./contracts

- name: Run Clippy
run: cargo clippy --tests -- -D warnings
run: cargo clippy --tests --examples -- -D warnings

testing:
timeout-minutes: 90
Expand All @@ -82,7 +82,7 @@ jobs:
blueprint-manager,
gadget-context-derive,
gadget-blueprint-proc-macro,
gadget-blueprint-proc-macro-playground,
gadget-blueprint-proc-macro-playground
]
steps:
- name: checkout code
Expand Down Expand Up @@ -126,3 +126,58 @@ jobs:
# TODO: nextest doesn't support doc tests yet (https://github.com/nextest-rs/nextest/issues/16)
- name: doc tests
run: cargo test --package ${{ matrix.package }} --doc

integration-test-eigenlayer:
timeout-minutes: 90
runs-on: macos-latest
steps:
- name: checkout code
uses: actions/checkout@v2

- name: Install Foundry
run: |
curl -L https://foundry.paradigm.xyz | bash
source /Users/runner/.bashrc
foundryup
- name: Add Foundry to PATH
run: echo "${HOME}/.foundry/bin" >> $GITHUB_PATH

- name: Forge build
run: forge update && cd blueprints/incredible-squaring-eigenlayer && forge build --root ./contracts && cd ../../

- name: setup-docker
run: brew install docker

- name: Verify Forge and Docker installation
run: forge --version && docker --version

- name: Run anvil in background
run: anvil --version && anvil &

- name: install rust
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: stable

- uses: swatinem/rust-cache@v2
with:
cache-on-failure: "true"

- name: install protobuf
run: brew install protobuf gmp

- name: Set Relevant M1 env vars
run: |
export LIBRARY_PATH=$LIBRARY_PATH:/opt/homebrew/lib
export INCLUDE_PATH=$INCLUDE_PATH:/opt/homebrew/include
- name: install cargo-nextest
run: cargo install cargo-nextest --locked

- name: Build (release) integration test
run: cargo build --release -p incredible-squaring-blueprint-eigenlayer

- name: tests
run: RUST_LOG=gadget=trace cargo test --package blueprint-test-utils test_eigenlayer_incredible_squaring_blueprint -- --nocapture

12 changes: 7 additions & 5 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@
path = blueprints/incredible-squaring-eigenlayer/contracts/lib/forge-std
url = https://github.com/foundry-rs/forge-std

[submodule "blueprints/tangle-avs-blueprint/contracts/lib/forge-std"]
path = blueprints/tangle-avs-blueprint/contracts/lib/forge-std
url = https://github.com/foundry-rs/forge-std

# For the ecdsa-threshold-mpc blueprint
[submodule "blueprints/ecdsa-threshold-mpc/contracts/lib/forge-std"]
path = blueprints/ecdsa-threshold-mpc/contracts/lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "blueprints/ecdsa-threshold-mpc/contracts/lib/tnt-core"]
path = blueprints/ecdsa-threshold-mpc/contracts/lib/tnt-core
url = https://github.com/tangle-network/tnt-core
branch = main
branch = main
[submodule "blueprints/incredible-squaring-symbiotic/contracts/lib/forge-std"]
path = blueprints/incredible-squaring-symbiotic/contracts/lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "blueprints/incredible-squaring-symbiotic/contracts/lib/core"]
path = blueprints/incredible-squaring-symbiotic/contracts/lib/core
url = https://github.com/symbioticfi/core
Loading

0 comments on commit 8804f8e

Please sign in to comment.