Skip to content

LW-10165 Stake pool advanced filters #4459

LW-10165 Stake pool advanced filters

LW-10165 Stake pool advanced filters #4459

name: Continuous Integration - E2E
env:
TL_DEPTH: ${{ github.event.pull_request.head.repo.fork && '0' || fromJson(vars.TL_DEPTH) }}
TL_LEVEL: ${{ github.event.pull_request.head.repo.fork && 'info' || vars.TL_LEVEL }}
# -----------------------------------------------------------------------------------------
KEY_MANAGEMENT_PROVIDER: 'inMemory'
KEY_MANAGEMENT_PARAMS: '{"bip32Ed25519": "Sodium", "accountIndex": 0, "chainId":{"networkId": 0, "networkMagic": 888}, "passphrase":"some_passphrase","mnemonic":"vacant violin soft weird deliver render brief always monitor general maid smart jelly core drastic erode echo there clump dizzy card filter option defense"}'
ASSET_PROVIDER: 'http'
ASSET_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/"}'
CHAIN_HISTORY_PROVIDER: 'http'
CHAIN_HISTORY_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/"}'
DB_SYNC_CONNECTION_STRING: 'postgresql://postgres:doNoUseThisSecret!@localhost:5435/cexplorer'
HANDLE_PROVIDER: 'http'
HANDLE_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4011/"}'
STAKE_POOL_CONNECTION_STRING: 'postgresql://postgres:doNoUseThisSecret!@localhost:5435/stake_pool'
STAKE_POOL_TEST_CONNECTION_STRING: 'postgresql://postgres:doNoUseThisSecret!@localhost:5435/stake_pool_test'
NETWORK_INFO_PROVIDER: 'http'
NETWORK_INFO_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/"}'
OGMIOS_URL: 'ws://localhost:1340/'
REWARDS_PROVIDER: 'http'
REWARDS_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/"}'
TX_SUBMIT_PROVIDER: 'http'
TX_SUBMIT_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/"}'
UTXO_PROVIDER: 'http'
UTXO_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/"}'
STAKE_POOL_PROVIDER: 'http'
STAKE_POOL_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/"}'
on:
pull_request:
push:
branches: ['master']
tags: ['*.*.*']
jobs:
build_and_test:
strategy:
matrix:
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
- name: 📥 Checkout repository
uses: actions/checkout@v3
- name: 🧰 Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.12.0
- name: 🔨 Build
run: |
yarn install --immutable --inline-builds
yarn build
docker build --no-cache .
env:
NODE_OPTIONS: '--max_old_space_size=8192'
- name: 🌐 Setup local test network
working-directory: packages/e2e
run: |
yarn local-network:up -d
env:
CARDANO_NODE_CHAINDB_LOG_LEVEL: 'Warning'
CARDANO_NODE_LOG_LEVEL: 'Warning'
OGMIOS_PORT: '1340'
OGMIOS_URL: 'ws://ogmios:1340'
POSTGRES_PORT: '5435'
- name: Wait for some epochs
run: |
yarn workspace @cardano-sdk/e2e wait-for-network
env:
DB_SYNC_CONNECTION_STRING: 'postgresql://postgres:doNoUseThisSecret!@localhost:5435/cexplorer'
- name: 🔬 Test - e2e - wallet
run: |
yarn workspace @cardano-sdk/e2e test:wallet
yarn workspace @cardano-sdk/e2e test:providers
yarn workspace @cardano-sdk/e2e test:projection
yarn workspace @cardano-sdk/e2e test:pg-boss
env:
STAKE_POOL_PROVIDER_URL: 'http://localhost:4000/'
- name: 🔬 Test - e2e - wallet - typeorm stake pool provider
run: |
yarn workspace @cardano-sdk/e2e test:providers -t StakePoolProvider
env:
STAKE_POOL_PROVIDER_URL: 'http://localhost:4010/'
- name: Dump docker logs
if: ${{ cancelled() || failure() }}
uses: jwalton/gh-docker-logs@v2