Commit 33aef763 authored by Mark Tyneway's avatar Mark Tyneway Committed by GitHub

ci: add devnet to ci (#2958)

* ci: add devnet to ci

Prevent bugs that break the devnet by
doing a deposit in CI on the devnet

* contracts-bedrock: reorder imports
Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent 42b1f303
......@@ -384,6 +384,51 @@ jobs:
command: make test
working_directory: l2geth
devnet:
machine:
image: ubuntu-2004:202201-01
docker_layer_caching: true
environment:
DOCKER_BUILDKIT: 1
steps:
- checkout
- run:
name: Check if we should run
command: |
CHANGED=$(bash ./ops/docker/ci-builder/check-changed.sh "(contracts-bedrock|op-bindings|op-batcher|op-node|op-proposer|ops-bedrock)/")
if [[ "$CHANGED" = "FALSE" ]]; then
circleci step halt
fi
- run:
name: foundryup
command: |
curl -L https://foundry.paradigm.xyz | bash
source $HOME/.bashrc
foundryup
echo 'export PATH=$HOME/.foundry/bin:$PATH' >> $BASH_ENV
- run:
name: Install and build
command: |
yarn install
yarn build
- run:
name: Bring up the stack
command: |
make devnet-up
- run:
name: Do a deposit
no_output_timeout: 5m
command: |
npx hardhat compile
npx hardhat deposit \
--to 0xB79f76EF2c5F0286176833E7B2eEe103b1CC3244 \
--amount-eth 1 \
--private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 \
--network devnetL1
working_directory: packages/contracts-bedrock/contracts-bedrock
- run:
command: echo "Deposit complete."
integration-tests:
machine:
image: ubuntu-2004:202201-01
......@@ -545,6 +590,7 @@ workflows:
- bedrock-go-tests
- fuzz-op-node
- bedrock-markdown
- devnet
- go-lint-test-build:
name: batch-submitter-tests
binary_name: batch-submitter
......
......@@ -3,10 +3,10 @@ import { HardhatUserConfig, task, subtask } from 'hardhat/config'
import { TASK_COMPILE_SOLIDITY_GET_SOURCE_PATHS } from 'hardhat/builtin-tasks/task-names'
// Hardhat plugins
import '@eth-optimism/hardhat-deploy-config'
import '@foundry-rs/hardhat-forge'
import '@nomiclabs/hardhat-ethers'
import 'hardhat-deploy'
import '@foundry-rs/hardhat-forge'
import '@eth-optimism/hardhat-deploy-config'
// Hardhat tasks
import './tasks/genesis-l1'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment