GitHub Action to deploy blockchain environments using builder-playground.
- name: Start Builder Playground
uses: flashbots/builder-playground-action@v1
with:
recipe: l1 # Optional: Recipe name or path to playground.yaml (just installs if not provided)
version: v0.3.1
detached: true
args: --log-level=trace| Input | Description | Required | Default |
|---|---|---|---|
version |
Version of builder-playground to use | No | latest |
recipe |
Recipe name or path to playground.yaml file | No | - |
detached |
Run playground in detached mode | No | true |
args |
Additional arguments to pass to builder-playground start | No | - |
name: Deploy Devnet
on: [push]
jobs:
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install builder-playground
uses: flashbots/builder-playground-action@v1
- name: Run tests
run: |
builder-playground start <your-args>
# Your tests herename: Deploy Devnet
on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Start playground
uses: flashbots/builder-playground-action@v1
with:
recipe: l1
args: --use-native-reth --timeout 5s
- name: Run tests
run: |
# Your tests herename: Deploy Custom Environment
on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Start playground
uses: flashbots/builder-playground-action@v1
with:
version: v0.3.1
recipe: ./configs/playground.yaml
- name: Run tests
run: |
# Your tests hereThis action uses flashbots-toolchain to install builder-playground and then runs it in the background with your specified recipe.
- Install
act(nektos/act). - Change
action.ymlor the action test workflow in.github/workflows/test.yml. make test
MIT