feat(onchain/aid_escrow): decimal-edge tests for validate_token + min… #137
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: Testnet Integration Harness | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| run_write_flow: | |
| description: 'Run write flow (requires SOROBAN_TOKEN_ADDRESS set)' | |
| type: boolean | |
| default: false | |
| push: | |
| branches: | |
| - main | |
| - 'release/**' | |
| jobs: | |
| check-configuration: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| configured: ${{ steps.check.outputs.configured }} | |
| steps: | |
| - name: Check testnet configuration | |
| id: check | |
| env: | |
| SOROBAN_CONTRACT_ID: ${{ secrets.SOROBAN_CONTRACT_ID }} | |
| SOROBAN_RPC_URL: ${{ secrets.SOROBAN_RPC_URL }} | |
| run: | | |
| if [[ -n "$SOROBAN_CONTRACT_ID" && -n "$SOROBAN_RPC_URL" ]]; then | |
| echo "configured=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "configured=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| integration-harness: | |
| name: Testnet Integration Harness | |
| runs-on: ubuntu-latest | |
| needs: check-configuration | |
| if: > | |
| github.event_name == 'workflow_dispatch' || needs.check-configuration.outputs.configured == 'true' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install dependencies | |
| working-directory: tools/testnet-smoke | |
| run: | | |
| npm ci | |
| - name: Run integration harness | |
| working-directory: tools/testnet-smoke | |
| env: | |
| SOROBAN_RPC_URL: ${{ secrets.SOROBAN_RPC_URL || 'https://soroban-testnet.stellar.org' }} | |
| SOROBAN_CONTRACT_ID: ${{ secrets.SOROBAN_CONTRACT_ID }} | |
| SOROBAN_ADMIN_SECRET_KEY: ${{ secrets.SOROBAN_ADMIN_SECRET_KEY }} | |
| SOROBAN_TOKEN_ADDRESS: ${{ secrets.SOROBAN_TOKEN_ADDRESS }} | |
| SOROBAN_RECIPIENT_SECRET_KEY: ${{ secrets.SOROBAN_RECIPIENT_SECRET_KEY }} | |
| SOROBAN_NETWORK_PASSPHRASE: ${{ secrets.SOROBAN_NETWORK_PASSPHRASE || 'Test SDF Network ; September 2015' }} | |
| SMOKE_RETRIES: ${{ vars.SMOKE_RETRIES || '3' }} | |
| SMOKE_RETRY_DELAY_MS: ${{ vars.SMOKE_RETRY_DELAY_MS || '2000' }} | |
| SMOKE_OP_TIMEOUT_MS: ${{ vars.SMOKE_OP_TIMEOUT_MS || '120000' }} | |
| run: | | |
| node index.js |