fix: versions and missing changelog #1438
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: RPC Tests | |
| permissions: | |
| contents: read | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [main, release/**] | |
| pull_request: | |
| paths-ignore: | |
| - "website/**" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: build | |
| runs-on: ubuntu-latest | |
| env: | |
| SCCACHE_GHA_ENABLED: "true" | |
| RUSTC_WRAPPER: "sccache" | |
| PKG_CONFIG_PATH: /usr/lib/pkgconfig | |
| CI_CACHE: "/tmp/.cache" | |
| CI_BUILD: "--locked" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libdbus-1-dev pkg-config libudev-dev | |
| - run: rustup update | |
| - run: rustup target add wasm32v1-none | |
| - uses: taiki-e/install-action@just | |
| - uses: taiki-e/install-action@nextest | |
| - uses: cargo-bins/cargo-binstall@main | |
| - uses: stellar/stellar-cli@v25.2.0 | |
| - uses: mozilla-actions/sccache-action@v0.0.9 | |
| - run: just build | |
| - run: just build-cli-test-contracts | |
| - name: Create nextest archive | |
| run: cargo nextest archive --archive-file nextest-archive.tar.zst --package stellar-scaffold-cli --package stellar-registry-cli --package stellar-scaffold-reporter --features integration-tests | |
| - name: Package runtime artifacts | |
| run: | | |
| tar -cf - \ | |
| target/debug/stellar-scaffold \ | |
| target/debug/stellar-registry \ | |
| target/debug/stellar-scaffold-reporter \ | |
| target/stellar/local/ \ | |
| crates/stellar-scaffold-test/fixtures/soroban-init-boilerplate/target/stellar/local/ \ | |
| | zstd -1 -o runtime-artifacts.tar.zst | |
| - name: Upload nextest archive | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: nextest-archive | |
| path: nextest-archive.tar.zst | |
| retention-days: 1 | |
| - name: Upload runtime artifacts | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: runtime-artifacts | |
| path: runtime-artifacts.tar.zst | |
| retention-days: 1 | |
| test: | |
| name: test ${{ matrix.name }} | |
| needs: build | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: scaffold-cli (build_clients) | |
| filter: "test-integration-scaffold-build-clients" | |
| - name: scaffold-cli (features) | |
| filter: "test-integration-scaffold-features" | |
| - name: scaffold-cli (examples 1-14) | |
| filter: "test-integration-scaffold-examples-1" | |
| - name: scaffold-cli (examples 15-27) | |
| filter: "test-integration-scaffold-examples-2" | |
| - name: registry-cli | |
| filter: "test-integration-registry" | |
| - name: reporter | |
| filter: "test-integration-reporter" | |
| env: | |
| STELLAR_RPC_URL: http://localhost:8000/soroban/rpc | |
| STELLAR_NETWORK_PASSPHRASE: "Standalone Network ; February 2017" | |
| STELLAR_ACCOUNT: default | |
| STELLAR_CONTRACT_ID: core | |
| services: | |
| rpc: | |
| image: stellar/quickstart:testing | |
| ports: | |
| - 8000:8000 | |
| env: | |
| ENABLE_LOGS: true | |
| NETWORK: local | |
| ENABLE_SOROBAN_RPC: true | |
| options: >- | |
| --health-cmd "curl --no-progress-meter --fail-with-body -X POST \"http://localhost:8000/soroban/rpc\" -H 'Content-Type: application/json' -d '{\"jsonrpc\":\"2.0\",\"id\":8675309,\"method\":\"getNetwork\"}' && curl --no-progress-meter \"http://localhost:8000/friendbot\" | grep '\"invalid_field\": \"addr\"'" | |
| --health-interval 2s | |
| --health-timeout 5s | |
| --health-retries 50 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: taiki-e/install-action@just | |
| - uses: taiki-e/install-action@nextest | |
| - uses: stellar/stellar-cli@v25.2.0 | |
| - name: Download nextest archive | |
| uses: actions/download-artifact@v7 | |
| with: | |
| name: nextest-archive | |
| - name: Download runtime artifacts | |
| uses: actions/download-artifact@v7 | |
| with: | |
| name: runtime-artifacts | |
| - name: Extract runtime artifacts | |
| run: zstd -d runtime-artifacts.tar.zst --stdout | tar xf - | |
| - run: stellar keys generate default --fund | |
| - name: Extract nextest archive | |
| run: | | |
| mkdir -p /tmp/nextest-run | |
| cargo nextest run --archive-file nextest-archive.tar.zst --extract-to /tmp/nextest-run --workspace-remap . --no-run | |
| cp -a /tmp/nextest-run/target/* target/ | |
| - name: Run tests | |
| run: just ${{ matrix.filter }} true |