-
Notifications
You must be signed in to change notification settings - Fork 90
54 lines (44 loc) · 1.32 KB
/
playground-check.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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: true
docker-images: true
swap-storage: true
- 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: Start docker containers
run: |
cd playground
COMPOSE_PARALLEL_LIMIT=1 docker compose -f docker-compose.fork.yml up -d
- name: Free space check
run: df -h
- name: Execute validation script
run: |
cd playground
source .env
./test_playground.sh