Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Original providers covered a lot of the SDK, so it would be better to run both: blockfrost and the original setup (copy over the yaml instead of modifying)

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Continuous Integration - E2E
name: Continuous Integration (Blockfrost) - E2E

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

# Blockfrost enablement
BLOCKFROST_CUSTOM_BACKEND_URL: 'http://blockfrost-ryo:3000'
USE_TYPEORM_ASSET_PROVIDER: 'false'
ASSET_PROVIDER: 'blockfrost'
UTXO_PROVIDER: 'blockfrost'
CHAIN_HISTORY_PROVIDER: 'blockfrost'
REWARDS_PROVIDER: 'blockfrost'
NETWORK_INFO_PROVIDER: 'blockfrost'
#blockfrost-ryo doesn't have submit API
#TX_SUBMIT_PROVIDER: 'blockfrost'

on:
pull_request:
push:
Expand Down
14 changes: 11 additions & 3 deletions compose/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ x-provider-server-environment: &provider-server-environment
NETWORK_INFO_PROVIDER: ${NETWORK_INFO_PROVIDER:-dbsync}
TX_SUBMIT_PROVIDER: ${TX_SUBMIT_PROVIDER:-submit-node}
STAKE_POOL_PROVIDER: ${STAKE_POOL_PROVIDER:-dbsync}
USE_TYPEORM_ASSET_PROVIDER: ${USE_TYPEORM_ASSET_PROVIDER:-true}
NETWORK: ${NETWORK:-mainnet}
BLOCKFROST_API_KEY: ${BLOCKFROST_API_KEY}
BLOCKFROST_CUSTOM_BACKEND_URL: ${BLOCKFROST_CUSTOM_BACKEND_URL}
BLOCKFROST_API_KEY: ${BLOCKFROST_API_KEY:-}
BLOCKFROST_CUSTOM_BACKEND_URL: ${BLOCKFROST_CUSTOM_BACKEND_URL:-}

x-sdk-environment: &sdk-environment
LOGGER_MIN_SEVERITY: ${LOGGER_MIN_SEVERITY:-info}
Expand Down Expand Up @@ -133,6 +134,8 @@ services:
condition: service_started
ports:
- "3015:3000"
healthcheck:
test: [ 'CMD-SHELL', 'curl -s --fail http://localhost:3000/health' ]

cardano-db-sync:
<<:
Expand Down Expand Up @@ -352,6 +355,10 @@ services:
- *provider-server-environment
ports:
- ${API_PORT:-4000}:3000
- 9229:9229
depends_on:
blockfrost-ryo:
condition: service_healthy

stake-pool-provider-server:
<<:
Expand Down Expand Up @@ -380,12 +387,13 @@ services:
depends_on:
asset-projector:
condition: service_healthy
blockfrost-ryo:
condition: service_healthy
environment:
<<:
- *sdk-environment
- *provider-server-environment
SERVICE_NAMES: asset
USE_TYPEORM_ASSET_PROVIDER: true
ports:
- ${HANDLE_API_PORT:-4014}:3000

Expand Down
Loading
Loading