Skip to content

Commit 998f614

Browse files
committed
feat: enable blockfrost enabled e2e tests
1 parent b760734 commit 998f614

File tree

22 files changed

+1026
-634
lines changed

22 files changed

+1026
-634
lines changed

.github/workflows/continuous-integration-e2e.yaml renamed to .github/workflows/continuous-integration-blockfrost-e2e.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Continuous Integration - E2E
1+
name: Continuous Integration (Blockfrost) - E2E
22

33
env:
44
TL_DEPTH: ${{ github.event.pull_request.head.repo.fork && '0' || fromJson(vars.TL_DEPTH) }}
@@ -28,6 +28,17 @@ env:
2828
TEST_CLIENT_STAKE_POOL_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/"}'
2929
WS_PROVIDER_URL: 'http://localhost:4100/ws'
3030

31+
# Blockfrost enablement
32+
BLOCKFROST_CUSTOM_BACKEND_URL: 'http://blockfrost-ryo:3000'
33+
USE_TYPEORM_ASSET_PROVIDER: 'false'
34+
ASSET_PROVIDER: 'blockfrost'
35+
UTXO_PROVIDER: 'blockfrost'
36+
CHAIN_HISTORY_PROVIDER: 'blockfrost'
37+
REWARDS_PROVIDER: 'blockfrost'
38+
NETWORK_INFO_PROVIDER: 'blockfrost'
39+
#blockfrost-ryo doesn't have submit API
40+
#TX_SUBMIT_PROVIDER: 'blockfrost'
41+
3142
on:
3243
pull_request:
3344
push:

compose/common.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,10 @@ x-provider-server-environment: &provider-server-environment
7878
NETWORK_INFO_PROVIDER: ${NETWORK_INFO_PROVIDER:-dbsync}
7979
TX_SUBMIT_PROVIDER: ${TX_SUBMIT_PROVIDER:-submit-node}
8080
STAKE_POOL_PROVIDER: ${STAKE_POOL_PROVIDER:-dbsync}
81+
USE_TYPEORM_ASSET_PROVIDER: ${USE_TYPEORM_ASSET_PROVIDER:-true}
8182
NETWORK: ${NETWORK:-mainnet}
82-
BLOCKFROST_API_KEY: ${BLOCKFROST_API_KEY}
83-
BLOCKFROST_CUSTOM_BACKEND_URL: ${BLOCKFROST_CUSTOM_BACKEND_URL}
83+
BLOCKFROST_API_KEY: ${BLOCKFROST_API_KEY:-}
84+
BLOCKFROST_CUSTOM_BACKEND_URL: ${BLOCKFROST_CUSTOM_BACKEND_URL:-}
8485

8586
x-sdk-environment: &sdk-environment
8687
LOGGER_MIN_SEVERITY: ${LOGGER_MIN_SEVERITY:-info}
@@ -133,6 +134,8 @@ services:
133134
condition: service_started
134135
ports:
135136
- "3015:3000"
137+
healthcheck:
138+
test: [ 'CMD-SHELL', 'curl -s --fail http://localhost:3000/health' ]
136139

137140
cardano-db-sync:
138141
<<:
@@ -352,6 +355,10 @@ services:
352355
- *provider-server-environment
353356
ports:
354357
- ${API_PORT:-4000}:3000
358+
- 9229:9229
359+
depends_on:
360+
blockfrost-ryo:
361+
condition: service_healthy
355362

356363
stake-pool-provider-server:
357364
<<:
@@ -380,12 +387,13 @@ services:
380387
depends_on:
381388
asset-projector:
382389
condition: service_healthy
390+
blockfrost-ryo:
391+
condition: service_healthy
383392
environment:
384393
<<:
385394
- *sdk-environment
386395
- *provider-server-environment
387396
SERVICE_NAMES: asset
388-
USE_TYPEORM_ASSET_PROVIDER: true
389397
ports:
390398
- ${HANDLE_API_PORT:-4014}:3000
391399

0 commit comments

Comments
 (0)