Skip to content

Commit 24fb3ca

Browse files
committed
read eth rpc test url from env
1 parent 9e98531 commit 24fb3ca

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/go-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ jobs:
2727
${{ runner.os }}-go-
2828
- name: go test
2929
run: go test -p 1 ./...
30+
env:
31+
ETH_RPC_URL: ${{ secrets.ETH_RPC_URL }}

shovel/integration_test.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ import (
1313
)
1414

1515
func TestIntegrations(t *testing.T) {
16+
rpcURL := os.Getenv("ETH_RPC_URL")
17+
if rpcURL == "" {
18+
t.Skip("ETH_RPC_URL not set")
19+
}
1620
cases := []struct {
1721
blockNum uint64
1822
config string
@@ -117,7 +121,7 @@ func TestIntegrations(t *testing.T) {
117121
for _, ig := range conf.Integrations {
118122
task, err := NewTask(
119123
WithPG(pg),
120-
WithSource(jrpc2.New("https://practical-flashy-research.quiknode.pro/caae41d41b732f1f0872c8fa3ca2fe66ebb76a93/")),
124+
WithSource(jrpc2.New(rpcURL)),
121125
WithIntegration(ig),
122126
WithRange(c.blockNum, c.blockNum+1),
123127
)
@@ -128,7 +132,7 @@ func TestIntegrations(t *testing.T) {
128132
for _, ig := range conf.Integrations {
129133
task, err := NewTask(
130134
WithPG(pg),
131-
WithSource(jrpc2.New("https://practical-flashy-research.quiknode.pro/caae41d41b732f1f0872c8fa3ca2fe66ebb76a93/")),
135+
WithSource(jrpc2.New(rpcURL)),
132136
WithIntegration(ig),
133137
)
134138
tc.NoErr(t, err)

0 commit comments

Comments
 (0)