Skip to content

Add playground integration #16

Add playground integration

Add playground integration #16

Workflow file for this run

name: Integration
on:
workflow_dispatch:
pull_request:
merge_group:
push:
branches: [develop]
env:
CARGO_TERM_COLOR: always
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: Check contents suave-playground
if: ${{ failure() }}
run: |
pwd
ls ./
ls /tmp/playground
ls /tmp/playground/logs
- name: More stuff
if: ${{ failure() }}
run: |
ls /tmp
cat /tmp/rbuilder.toml
- name: Move logs to playground logs
if: ${{ failure() }}
run: |
mv integration_logs /tmp/playground/logs
- name: Upload playground artifacts
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: playground-logs
path: /tmp/playground/logs