Skip to content

Playground check

Playground check #13

name: Plauground operation check
on:
pull_request:
workflow_dispatch:
jobs:
playground-check:
runs-on: ubuntu-latest
env:
FORK_URL_MAINNET: ${{ secrets.FORK_URL_MAINNET }}
steps:
- name: Free space check
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: false
docker-images: false
swap-storage: false
- 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: 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: Free space check
run: df -h
- name: Start docker containers
run: |
cd playground
# firstly start explorer container to workaround yarn cache problem
docker compose -f docker-compose.fork.yml up -d explorer
docker compose -f docker-compose.fork.yml up -d
- name: Free space check
run: df -h
- name: Execute validation script
run: |
cd playground
./test_playground.sh