Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/flashbots-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Flashbots Integration Tests

on:
workflow_dispatch:
inputs:
ref:
description: 'Git ref to test (branch, tag, or SHA)'
required: false
default: 'main'

jobs:
flashbots-tests:
name: Flashbots Integration Tests
runs-on:
group: init4-runners
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
ref: ${{ github.event.inputs.ref || github.ref }}
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@nextest
- name: Optional Foundry Install
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Run flashbots integration tests
run: make test-flashbots
22 changes: 13 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# Usage:
# make # build (debug)
# make run # cargo run (debug)
# make release # optimized build
# make test # run unit + integration tests
# make fmt # check & auto‑format
# make clippy # full‑feature lint, deny warnings
# make doc # build docs
# make clean # remove target dir
# make # build (debug)
# make run # cargo run (debug)
# make release # optimized build
# make test # run unit + integration tests
# make test-flashbots # run flashbots integration tests (ignored tests)
# make fmt # check & auto‑format
# make clippy # full‑feature lint, deny warnings
# make doc # build docs
# make clean # remove target dir
# ----------------------------------------------------

CARGO ?= cargo
Expand All @@ -16,7 +17,7 @@ PROFILE ?= dev # override with `make PROFILE=release build`
CLIPPY_FLAGS ?= $(TARGETS) $(FEATURES) --workspace --profile dev -- -D warnings
FMT_FLAGS ?= --all

.PHONY: build release run test clean fmt clippy default
.PHONY: build release run test test-flashbots clean fmt clippy default

default: build

Expand All @@ -34,6 +35,9 @@ run:
test:
$(CARGO) test

test-flashbots:
cargo nextest run --run-ignored=only --workspace

clean:
$(CARGO) clean

Expand Down