Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/action-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Action test

on:
push:
branches: [main, release/**]
Comment on lines +4 to +5
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should be running this on pull request as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm yeah actually I think it should also run after build jobs and using correct ref from the hub

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could do that, but it's actually good in some ways to use the current latest, because that's the way we should make changes to the action. Changes to the action should probably never occur in lockstep with the image, otherwise people will see breakages.


concurrency:
group: ${{ github.workflow }}-${{ github.ref_protected == 'true' && github.sha || github.ref }}
cancel-in-progress: true

jobs:
basic-test:
name: Basic tests
strategy:
fail-fast: false
matrix:
sys:
# x64
- os: ubuntu-latest-16-cores
# ARM
- os: ubuntu-jammy-16-cores-arm64
# Intel
- os: macos-13
tag: [latest, testing]
runs-on: ${{ matrix.sys.os }}
steps:
- uses: stellar/quickstart@main
with:
tag: ${{ matrix.tag }}
- name: "Run basic test making sure RPC and Horizon are available"
run: >
RESP=`curl --no-progress-meter -X POST -H 'Content-Type: application/json' -d
'{"jsonrpc": "2.0", "id": 8675309, "method": "getLatestLedger"}' http://localhost:8000/rpc`

echo "RPC getLatestLedger response: $RESP"

echo "$RESP" | grep sequence

RESP=`curl -i -o - --silent 'http://localhost:8000/ledgers?limit=1'
-H 'Accept: application/json'`

echo "Horizon ledgers response: $RESP"

echo "$RESP" | grep "200 OK"
Loading