Skip to content

Commit d004582

Browse files
author
Gleb
authored
Add action basic test (#675)
* Add basic test * Disable on PR * rename action test
1 parent 258a5b6 commit d004582

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/action-test.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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"

0 commit comments

Comments
 (0)