File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Action test
2+
3+ on :
4+ push :
5+ branches : [main, release/**]
6+
7+ concurrency :
8+ group : ${{ github.workflow }}-${{ github.ref_protected == 'true' && github.sha || github.ref }}
9+ cancel-in-progress : true
10+
11+ jobs :
12+ basic-test :
13+ name : Basic tests
14+ strategy :
15+ fail-fast : false
16+ matrix :
17+ sys :
18+ # x64
19+ - os : ubuntu-latest-16-cores
20+ # ARM
21+ - os : ubuntu-jammy-16-cores-arm64
22+ # Intel
23+ - os : macos-13
24+ tag : [latest, testing]
25+ runs-on : ${{ matrix.sys.os }}
26+ steps :
27+ - uses : stellar/quickstart@main
28+ with :
29+ tag : ${{ matrix.tag }}
30+ - name : " Run basic test making sure RPC and Horizon are available"
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+ RESP=`curl -i -o - --silent 'http://localhost:8000/ledgers?limit=1'
40+ -H 'Accept: application/json'`
41+
42+ echo "Horizon ledgers response: $RESP"
43+
44+ echo "$RESP" | grep "200 OK"
You can’t perform that action at this time.
0 commit comments