Skip to content
Merged
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
4 changes: 3 additions & 1 deletion .github/workflows/integration-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: "Set up Docker Buildx"
uses: docker/setup-buildx-action@v3
- name: "Set up environment"
run: docker compose --env-file .env.IntegrationTest -f docker-integration-test-environment.yaml up --build -d --wait
run: docker compose --env-file .env.IntegrationTest -f docker-integration-test-environment.yaml up --build -d --wait --wait-timeout 1200
- name: "Wait for node to be populated"
run: "sleep 30s"
- name: "Install Node"
Expand Down
13 changes: 9 additions & 4 deletions docker-compose-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,17 @@ services:
volumes:
- ${CARDANO_CONFIG}:/config
- ${CARDANO_NODE_DIR}:${CARDANO_NODE_DIR}
depends_on:
db:
condition: service_healthy
yaci-indexer:
condition: service_started
healthcheck:
test: [ "CMD-SHELL", "curl --fail http://localhost:${API_PORT}/network/options -H 'Content-Type: application/json' --data '{\"network_identifier\": {\"blockchain\": \"cardano\",\"network\": \"${NETWORK}\"},\"metadata\": {}}' -X POST" ]
interval: 30s
retries: 20
start_period: 20s
timeout: 10s
interval: 10s
retries: 40
start_period: 60s
timeout: 5s
restart: always


Expand Down
4 changes: 4 additions & 0 deletions docker-integration-test-environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@ services:
yaci_store_enabled: true
ogmios_enabled: false

depends_on:
db:
condition: service_healthy

entrypoint: ["/app/yaci-cli", "create-node", "-o", "--start"]