File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 52
52
53
53
- name : Run integration tests
54
54
run : cargo nextest run --all-features --workspace --locked --no-tests=pass -E 'kind(test)'
55
+
56
+ sync :
57
+ runs-on : ubuntu-latest
58
+ timeout-minutes : 15
59
+ env :
60
+ RUST_BACKTRACE : 1
61
+ steps :
62
+ - uses : actions/checkout@v4
63
+ - uses : rui314/setup-mold@v1
64
+ - uses : dtolnay/rust-toolchain@nightly
65
+ with :
66
+ toolchain : ' nightly'
67
+ - uses : Swatinem/rust-cache@v2
68
+ with :
69
+ cache-on-failure : true
70
+ - uses : foundry-rs/foundry-toolchain@v1
71
+ - name : Start rollup node
72
+ env :
73
+ ALCHEMY_KEY : ${{ secrets.ALCHEMY_KEY }}
74
+ run : |
75
+ cargo run --bin rollup-node --features serde --release -- \
76
+ node --chain scroll-sepolia --datadir=./l2reth --disable-discovery
77
+ --http --http.addr=0.0.0.0 --http.port=8545 --http.api eth \
78
+ --trusted-peers enode://29cee709c400533ae038a875b9ca975c8abef9eade956dcf3585e940acd5c0ae916968f514bd37d1278775aad1b7db30f7032a70202a87fd7365bd8de3c9f5fc@44.242.39.33:30303 \
79
+ --log.stdout.format log-fmt -vvv \
80
+ --l1.url "https://eth-sepolia.g.alchemy.com/v2/$ALCHEMY_KEY" --l1.cups 500 \
81
+ --beacon.url https://eth-beacon-chain.drpc.org/rest/ --beacon.cups 100 --engine.en-sync-trigger 10000000000 \
82
+ --engine.sync-at-startup=false --engine.always-process-payload-attributes-on-canonical-head &
83
+ - name : Get hash for block 50000
84
+ run : |
85
+ echo "Waiting for block 50000..."
86
+ while ! cast block 50000 --rpc-url http://localhost:8545 2>/dev/null | grep -q hash; do
87
+ sleep 10
88
+ done
89
+ echo "Block 50000 found!"
90
+
91
+ EXPECTED_HASH="0x8333d8cd1274d49dcf9b130971d1b485a01f2a2604e73ea7caf9d721fbdf5859"
92
+ cast block 50000 --rpc-url http://localhost:8545 | grep -q "$EXPECTED_HASH"
You can’t perform that action at this time.
0 commit comments