feat: add ops script for query dispute testing and sdk modifications … #144
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
name: E2E - packages/contracts | |
env: | |
CI: true | |
on: | |
push: | |
branches: "*" | |
paths: | |
- packages/contracts/contracts/** | |
- packages/contracts/config/** | |
- packages/contracts/test/e2e/** | |
- packages/contracts/tasks/** | |
- packages/contracts/scripts/** | |
- packages/contracts/hardhat.config.ts | |
pull_request: | |
branches: "*" | |
paths: | |
- packages/contracts/contracts/** | |
- packages/contracts/config/** | |
- packages/contracts/test/e2e/** | |
- packages/contracts/tasks/** | |
- packages/contracts/scripts/** | |
- packages/contracts/hardhat.config.ts | |
workflow_dispatch: | |
jobs: | |
test-e2e: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up environment | |
uses: ./.github/actions/setup | |
- name: Run e2e tests | |
run: | | |
git clone https://github.com/OffchainLabs/nitro-testnode/ | |
pushd nitro-testnode | |
git checkout c47cb8c643bc8e63ff096f7f88f9152064d1532a | |
git submodule update --init --recursive | |
sed -i'' -e 's/^\(.*dev.period.*\)/# \1/' docker-compose.yaml | |
./test-node.bash --init --batchposters 0 --redundantsequencers 0 --detach | |
popd | |
pushd packages/contracts | |
L1_NETWORK=localnitrol1 L2_NETWORK=localnitrol2 yarn test:e2e |