-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 1.02 KB
/
testing_services.yml
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
name: Test Quickstart in Services
on:
push:
branches: [main]
jobs:
test:
name: test services
runs-on: ubuntu-22.04
services:
rpc:
image: stellar/quickstart:pr-540-testing-amd64
ports:
- 8000:8000
env:
# ENABLE_LOGS: true
NETWORK: local
ENABLE_SOROBAN_RPC: true
options: >-
--health-cmd "curl --no-progress-meter --fail-with-body -X POST 'http://localhost:8000/soroban/rpc' -H 'Content-Type: application/json' -d '{}' && curl --no-progress-meter --fail-with-body 'http://localhost:8000/friendbot'"
--health-interval 10s
--health-timeout 5s
--health-retries 50
steps:
- uses: actions/checkout@v3
- run: "curl --fail-with-body -X POST \"http://localhost:8000/soroban/rpc\" -H 'Content-Type: application/json' -d '{\"jsonrpc\":\"2.0\",\"id\":8675309,\"method\":\"getNetwork\"}'"
- run: curl --no-progress-meter "http://localhost:8000/friendbot?addr=$(./target/bin/soroban config identity address)"