Skip to content

Add playground integration #22

Add playground integration

Add playground integration #22

Workflow file for this run

name: Integration
on:
workflow_dispatch:
pull_request:
merge_group:
push:
branches: [develop]
env:
CARGO_TERM_COLOR: always
PLAYGROUND_DIR: /tmp/playground
jobs:
integration:
name: Lint and test
runs-on: warp-ubuntu-latest-x64-16x
strategy:
matrix:
toolchain:
- stable
#- beta
#- nightly
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Download suave playground
uses: ./.github/actions/download_playground
- name: Install Foundry toolchain
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install native dependencies
run: sudo apt-get install -y libsqlite3-dev
- name: Check reth
run: |
which reth
reth --version
- name: Check lighthouse
run: |
which lighthouse
lighthouse --version
- name: Build the rbuilder
run: cargo build
- name: Run the playground
run: suave-playground --output /tmp/playground &
- name: Run integration tests
run: cargo test --package rbuilder --lib -- integration::tests::test_simple_example --exact
- name: Move test integration logs to playground logs to archive
# This steps fails if the test fails early and the playground logs dir has not been created
if: ${{ failure() }}
run: |
mv integration_logs /tmp/playground/logs
- name: Archive playground logs
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: playground-logs
path: /tmp/playground/logs
retention-days: 5