Skip to content

Playground check

Playground check #9

name: Plauground operation check
on:
pull_request:
workflow_dispatch:
jobs:
playground-check:
runs-on: ubuntu-latest
steps:
- name: Free space check #1
run: df -h
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true
- name: Free space check #2
run: df -h
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependency
run: sudo apt-get -qq update && sudo apt-get -y -q install curl jq
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Free space check #3
run: df -h
- name: Setup environment
run: |
cp playground/.env.example playground/.env
sed -i -e 's/ETH_RPC_URL=.*/ETH_RPC_URL=$FORK_URL_MAINNET/g' playground/.env
cat playground/.env
- name: Start docker containers
run: |
cd playground
docker compose -f docker-compose.fork.yml up -d
- name: Free space check #4
run: df -h
- name: Execute validation script
run: |
cd playground
source .env
./test_playground.sh