Skip to content

Commit

Permalink
test: Rework integration tests
Browse files Browse the repository at this point in the history
We need to run the solver integration tests before starting the resource
provider for the main integration tests. Also, moved to running the
solver and resource provider directly from Go and only running base
services in Docker.
  • Loading branch information
bgins committed Dec 17, 2024
1 parent b483979 commit 5a61d27
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,30 @@ jobs:
- name: Initialize chain
run: ./stack compose-init

- name: Run stack
env:
DISABLE_TELEMETRY: true
API_HOST: ""
run: ./stack compose-up -d

- name: Run tests
env:
LOG_LEVEL: debug
run: ./stack integration-tests
- name: Start base services
run: ./stack compose-services -d

- name: Display resource provider logs
run: docker logs resource-provider
- name: Start solver
run: |
./stack solver --disable-telemetry=true --api-host="" > solver.log &
sleep 5
- name: Run solver integration tests
run: ./stack integration-tests-solver

- name: Start resource provider
run: |
./stack resource-provider --disable-telemetry=true --api-host="" > resource-provider.log &
sleep 5
- name: Run main integration tests
run: ./stack integration-tests

- name: Display solver logs
run: docker logs solver
run: cat solver.log

- name: Display resource provider logs
run: cat resource-provider.log

- name: Display chain logs
run: docker logs chain

0 comments on commit 5a61d27

Please sign in to comment.