Skip to content

Commit

Permalink
feat: enable blockfrost enabled e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ginnun committed Oct 17, 2024
1 parent b760734 commit 287edbf
Show file tree
Hide file tree
Showing 25 changed files with 1,051 additions and 635 deletions.
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

0 comments on commit 287edbf

Please sign in to comment.