From 3d863c7b7027dde8ef16d983a9f34c32ad83665c Mon Sep 17 00:00:00 2001 From: Ifropc Date: Wed, 26 Mar 2025 10:22:57 -0700 Subject: [PATCH 1/3] Add basic test --- .github/workflows/basic-test.yml | 45 ++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/basic-test.yml diff --git a/.github/workflows/basic-test.yml b/.github/workflows/basic-test.yml new file mode 100644 index 000000000..75e518d1d --- /dev/null +++ b/.github/workflows/basic-test.yml @@ -0,0 +1,45 @@ +name: Basic test + +on: + push: + branches: [main, release/**] + pull_request: + +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" From bfcc649206a2078b4871741f4621a8711b9ff3d1 Mon Sep 17 00:00:00 2001 From: Ifropc Date: Wed, 26 Mar 2025 11:12:25 -0700 Subject: [PATCH 2/3] Disable on PR --- .github/workflows/basic-test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/basic-test.yml b/.github/workflows/basic-test.yml index 75e518d1d..bd746f7d5 100644 --- a/.github/workflows/basic-test.yml +++ b/.github/workflows/basic-test.yml @@ -3,7 +3,6 @@ name: Basic test on: push: branches: [main, release/**] - pull_request: concurrency: group: ${{ github.workflow }}-${{ github.ref_protected == 'true' && github.sha || github.ref }} From 613638c3a498e011d36f77d1313462e693ae2155 Mon Sep 17 00:00:00 2001 From: Ifropc Date: Wed, 26 Mar 2025 15:36:18 -0700 Subject: [PATCH 3/3] rename action test --- .github/workflows/{basic-test.yml => action-test.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{basic-test.yml => action-test.yml} (98%) diff --git a/.github/workflows/basic-test.yml b/.github/workflows/action-test.yml similarity index 98% rename from .github/workflows/basic-test.yml rename to .github/workflows/action-test.yml index bd746f7d5..b82f8e767 100644 --- a/.github/workflows/basic-test.yml +++ b/.github/workflows/action-test.yml @@ -1,4 +1,4 @@ -name: Basic test +name: Action test on: push: