Skip to content

Commit 3d863c7

Browse files
committed
Add basic test
1 parent 258a5b6 commit 3d863c7

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/basic-test.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+
- name: "Run basic test making sure RPC and Horizon are available"
32+
run: >
33+
RESP=`curl --no-progress-meter -X POST -H 'Content-Type: application/json' -d
34+
'{"jsonrpc": "2.0", "id": 8675309, "method": "getLatestLedger"}' http://localhost:8000/rpc`
35+
36+
echo "RPC getLatestLedger response: $RESP"
37+
38+
echo "$RESP" | grep sequence
39+
40+
RESP=`curl -i -o - --silent 'http://localhost:8000/ledgers?limit=1'
41+
-H 'Accept: application/json'`
42+
43+
echo "Horizon ledgers response: $RESP"
44+
45+
echo "$RESP" | grep "200 OK"

0 commit comments

Comments
 (0)