File tree 4 files changed +53
-26
lines changed
4 files changed +53
-26
lines changed Original file line number Diff line number Diff line change 19
19
required : true
20
20
type : string
21
21
description : " Target repository for the image"
22
- rpc_version :
23
- required : false
24
- type : string
25
- default : " v0_7"
26
22
test_mode :
27
23
required : false
28
24
type : string
35
31
required : true
36
32
RPC_URL :
37
33
required : true
34
+ WS_RPC_URL :
35
+ required : true
38
36
TEST_ACCOUNT_ADDRESS :
39
37
required : true
40
38
TEST_ACCOUNT_PRIVATE_KEY :
41
39
required : true
42
40
43
41
concurrency :
44
- group : shared_${{ inputs.environment }}_environment
45
- cancel-in-progress : false
46
-
42
+ group : shared_${{ inputs.environment }}_environment
43
+ cancel-in-progress : false
44
+
47
45
permissions :
48
46
contents : read
49
47
@@ -97,20 +95,33 @@ jobs:
97
95
needs : [deploy]
98
96
uses : ./.github/workflows/starknet-rs-tests.yml
99
97
secrets :
100
- STARKNET_RPC : ${{ secrets.RPC_URL }}/${{ inputs.rpc_version }}
98
+ STARKNET_RPC : ${{ secrets.RPC_URL }}/v0_7
101
99
102
100
starknet-js :
103
101
needs : [deploy]
104
102
uses : ./.github/workflows/starknet-js-tests.yml
105
103
with :
106
104
test_mode : ${{ inputs.test_mode }}
107
105
secrets :
108
- TEST_RPC_URL : ${{ secrets.RPC_URL }}/${{ inputs.rpc_version }}
106
+ TEST_RPC_URL : ${{ secrets.RPC_URL }}/v0_7
109
107
TEST_ACCOUNT_ADDRESS : ${{ secrets.TEST_ACCOUNT_ADDRESS }}
110
108
TEST_ACCOUNT_PRIVATE_KEY : ${{ secrets.TEST_ACCOUNT_PRIVATE_KEY }}
111
109
112
- starknet-go :
110
+ starknet-go-rpcv07 :
111
+ needs : [deploy]
112
+ uses : ./.github/workflows/starknet-go-tests.yml
113
+ with :
114
+ ref : 1ede19210c10f1f1f9c3cb49a42f737cd90eda5e
115
+ rpc_version : v0_7
116
+ secrets :
117
+ TEST_RPC_URL : ${{ secrets.RPC_URL }}
118
+
119
+ starknet-go-rpcv08 :
113
120
needs : [deploy]
114
121
uses : ./.github/workflows/starknet-go-tests.yml
122
+ with :
123
+ ref : 0993fd35590564b0de79f0d757ff2609a5ed0798
124
+ rpc_version : v0_8
115
125
secrets :
116
- TEST_RPC_URL : ${{ secrets.RPC_URL }}/${{ inputs.rpc_version }}
126
+ TEST_RPC_URL : ${{ secrets.RPC_URL }}
127
+ TEST_WS_RPC_URL : ${{ secrets.WS_RPC_URL }}
Original file line number Diff line number Diff line change @@ -30,11 +30,11 @@ jobs:
30
30
environment : Development
31
31
source_repo : nubia-oci-local-dev
32
32
target_repo : nubia-oci-local-dev
33
- rpc_version : v0_7
34
33
test_mode : ${{ github.event_name == 'pull_request' && 'fast' || 'full' }}
35
34
secrets :
36
35
ARTIFACTORY_NUBIA_USERNAME : ${{ secrets.ARTIFACTORY_NUBIA_USERNAME }}
37
36
ARTIFACTORY_NUBIA_TOKEN_DEVELOPER : ${{ secrets.ARTIFACTORY_NUBIA_TOKEN_DEVELOPER }}
38
37
RPC_URL : ${{ secrets.DEV_SEPOLIA_URL }}
38
+ WS_RPC_URL : ${{ secrets.DEV_WS_SEPOLIA_URL }}
39
39
TEST_ACCOUNT_ADDRESS : ${{ secrets.TEST_ACCOUNT_ADDRESS }}
40
40
TEST_ACCOUNT_PRIVATE_KEY : ${{ secrets.TEST_ACCOUNT_PRIVATE_KEY }}
Original file line number Diff line number Diff line change 7
7
description : ' Docker image tag from Dev to promote'
8
8
required : true
9
9
type : string
10
- rpc_version :
11
- description : ' RPC version for tests (e.g., v0_7)'
12
- required : true
13
- default : ' v0_7'
14
- type : string
15
10
16
11
permissions :
17
12
contents : read
18
13
19
- concurrency :
20
- group : shared_staging_environment
21
- cancel-in-progress : false
22
-
23
14
jobs :
24
15
promote_to_staging :
25
16
uses : ./.github/workflows/deploy-and-test.yaml
@@ -28,10 +19,10 @@ jobs:
28
19
environment : Staging
29
20
source_repo : nubia-oci-local-dev
30
21
target_repo : nubia-oci-local-staging
31
- rpc_version : ${{ inputs.rpc_version }}
32
22
secrets :
33
23
ARTIFACTORY_NUBIA_USERNAME : ${{ secrets.ARTIFACTORY_NUBIA_USERNAME }}
34
24
ARTIFACTORY_NUBIA_TOKEN_DEVELOPER : ${{ secrets.ARTIFACTORY_NUBIA_TOKEN_DEVELOPER }}
35
25
RPC_URL : ${{ secrets.STAGING_SEPOLIA_URL }}
26
+ WS_RPC_URL : ${{ secrets.STAGING_WS_SEPOLIA_URL }}
36
27
TEST_ACCOUNT_ADDRESS : ${{ secrets.TEST_ACCOUNT_ADDRESS }}
37
28
TEST_ACCOUNT_PRIVATE_KEY : ${{ secrets.TEST_ACCOUNT_PRIVATE_KEY }}
Original file line number Diff line number Diff line change 8
8
required : false
9
9
default : ' 1ede19210c10f1f1f9c3cb49a42f737cd90eda5e'
10
10
type : string
11
+ rpc_version :
12
+ description : ' The RPC version to test (v0_7 or v0_8)'
13
+ required : true
14
+ type : string
11
15
secrets :
12
16
TEST_RPC_URL :
13
17
required : true
18
+ TEST_WS_RPC_URL :
19
+ required : false
14
20
15
21
jobs :
16
22
test :
30
36
- name : Install dependencies
31
37
run : go mod download
32
38
33
- - name : Test RPC on testnet
34
- run : cd rpc && go test -skip 'TestBlockWithReceipts' -timeout 1200s -v -env testnet .
35
- env :
36
- INTEGRATION_BASE : ${{ secrets.TEST_RPC_URL }}
39
+ - name : Configure test environment variables
40
+ run : |
41
+ RPC_URL="${{ secrets.TEST_RPC_URL }}"
42
+ VERSION="${{ inputs.rpc_version }}"
43
+
44
+ if [ "$VERSION" = "v0_7" ]; then
45
+ echo "INTEGRATION_BASE=${RPC_URL}/${VERSION}" >> $GITHUB_ENV
46
+ elif [ "$VERSION" = "v0_8" ]; then
47
+ if [ -z "${{ secrets.TEST_WS_RPC_URL }}" ]; then
48
+ echo "Error: TEST_WS_RPC_URL secret must be set for RPC v0_8"
49
+ exit 1
50
+ fi
51
+ echo "HTTP_PROVIDER_URL=${RPC_URL}/${VERSION}" >> $GITHUB_ENV
52
+ echo "WS_PROVIDER_URL=${{ secrets.TEST_WS_RPC_URL }}/${VERSION}" >> $GITHUB_ENV
53
+ else
54
+ echo "Version $VERSION is not supported."
55
+ exit 1
56
+ fi
57
+
58
+ - name : Run RPC tests
59
+ run : |
60
+ cd rpc
61
+ go test -timeout 1200s -v -env testnet .
You can’t perform that action at this time.
0 commit comments