-
Notifications
You must be signed in to change notification settings - Fork 73
66 lines (60 loc) · 2.17 KB
/
Copy pathtestnet-smoke.yml
File metadata and controls
66 lines (60 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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