mirror of
https://github.com/trezor/blockbook.git
synced 2026-03-10 17:47:23 +01:00
ci: always filter to EVM-only coins in CI connectivity/integration tests
The Go test framework runs ALL coins listed in tests.json with 'connectivity' enabled, falling back to default config URLs when env vars are absent. This exposed internal infrastructure (127.0.0.1 defaults and sldev.cz URLs) in CI logs. Now both connectivity-tests and integration-tests always apply an EVM-only coin filter (avalanche|bsc|arbitrum|base|ethereum|optimism|polygon) unless a manual workflow_dispatch provides a custom coin_filter. UTXO chains remain fully testable on the dev server.
This commit is contained in:
19
.github/workflows/ci.yml
vendored
19
.github/workflows/ci.yml
vendored
@@ -77,12 +77,12 @@ jobs:
|
||||
BB_RPC_URL_HTTP_base: ${{ vars.BB_RPC_URL_HTTP_base }}
|
||||
BB_RPC_URL_WS_base: ${{ vars.BB_RPC_URL_WS_base }}
|
||||
run: |
|
||||
# Default to EVM-only coins (publicly reachable from GitHub runners).
|
||||
# UTXO chains use internal backends and are tested on the dev server.
|
||||
EVM_COINS="avalanche|bsc|arbitrum|base|ethereum|optimism|polygon"
|
||||
FILTER="${{ inputs.coin_filter }}"
|
||||
if [ -n "$FILTER" ]; then
|
||||
make test-connectivity ARGS="-run 'TestIntegration/($FILTER)=.*/connectivity'"
|
||||
else
|
||||
make test-connectivity
|
||||
fi
|
||||
FILTER="${FILTER:-$EVM_COINS}"
|
||||
make test-connectivity ARGS="-run 'TestIntegration/($FILTER)=.*/connectivity'"
|
||||
|
||||
integration-tests:
|
||||
name: Integration Tests (RPC + Sync)
|
||||
@@ -119,9 +119,8 @@ jobs:
|
||||
BB_RPC_URL_HTTP_base: ${{ vars.BB_RPC_URL_HTTP_base }}
|
||||
BB_RPC_URL_WS_base: ${{ vars.BB_RPC_URL_WS_base }}
|
||||
run: |
|
||||
# Default to EVM-only coins (publicly reachable from GitHub runners).
|
||||
EVM_COINS="avalanche|bsc|arbitrum|base|ethereum|optimism|polygon"
|
||||
FILTER="${{ inputs.coin_filter }}"
|
||||
if [ -n "$FILTER" ]; then
|
||||
make test-integration ARGS="-run 'TestIntegration/($FILTER)=.*/' -v"
|
||||
else
|
||||
make test-integration ARGS="-v"
|
||||
fi
|
||||
FILTER="${FILTER:-$EVM_COINS}"
|
||||
make test-integration ARGS="-run 'TestIntegration/($FILTER)=.*/' -v"
|
||||
|
||||
Reference in New Issue
Block a user