diff --git a/.github/workflows/flashbots-ci.yml b/.github/workflows/flashbots-ci.yml new file mode 100644 index 0000000..9019ecf --- /dev/null +++ b/.github/workflows/flashbots-ci.yml @@ -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 diff --git a/Makefile b/Makefile index db93585..6f4bd91 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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 @@ -34,6 +35,9 @@ run: test: $(CARGO) test +test-flashbots: + cargo nextest run --run-ignored=only --workspace + clean: $(CARGO) clean