Add playground integration #20
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Integration | |
on: | |
workflow_dispatch: | |
pull_request: | |
merge_group: | |
push: | |
branches: [develop] | |
env: | |
CARGO_TERM_COLOR: always | |
PLAYGROUND_DIR: /tmp/playground | |
jobs: | |
job1: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Do something | |
run: ls -la | |
integration: | |
name: Playground integration | |
needs: job1 | |
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 | |
# This step runs the integration test in the 'integration' folder | |
run: cargo test --package rbuilder --lib -- integration::integration --show-output | |
- 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 |