File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Basic test
2+
3+ on :
4+ push :
5+ branches : [main, release/**]
6+ pull_request :
7+
8+ concurrency :
9+ group : ${{ github.workflow }}-${{ github.ref_protected == 'true' && github.sha || github.ref }}
10+ cancel-in-progress : true
11+
12+ jobs :
13+ basic-test :
14+ name : Basic tests
15+ strategy :
16+ fail-fast : false
17+ matrix :
18+ sys :
19+ # x64
20+ - os : ubuntu-latest-16-cores
21+ # ARM
22+ - os : ubuntu-jammy-16-cores-arm64
23+ # Intel
24+ - os : macos-13
25+ tag : [latest, testing]
26+ runs-on : ${{ matrix.sys.os }}
27+ steps :
28+ - uses : stellar/quickstart@main
29+ with :
30+ tag : ${{ matrix.tag }}
31+ - run : >
32+ RESP=`curl --no-progress-meter -X POST -H 'Content-Type: application/json' -d
33+ '{"jsonrpc": "2.0", "id": 8675309, "method": "getLatestLedger"}' http://localhost:8000/rpc`
34+
35+ echo "RPC getLatestLedger response: $RESP"
36+
37+ echo "$RESP" | grep sequence
38+
39+ curl -s -o response -w "%{response_code}" curl -L 'http://localhost:8000/ledgers?limit=1'
40+ -H 'Accept: application/json'
41+
42+ echo "Horizon ledgers response: `cat response`"
43+
44+ echo "$response_code" | grep 200
You can’t perform that action at this time.
0 commit comments