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 Jan 10, 2025
1 parent 83370e7 commit b9f2481
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,32 @@ jobs:
- name: Initialize chain
run: ./stack compose-init

- name: Run stack
env:
DISABLE_TELEMETRY: true
API_HOST: ""
run: ./stack compose-up -d
- name: Start base services
run: |
./stack compose-services -d
sleep 30
- name: Run tests
env:
LOG_LEVEL: debug
run: ./stack integration-tests
- name: Start solver
run: |
./stack solver --disable-telemetry=true --api-host="" > solver.log &
sleep 5
- name: Display resource provider logs
run: docker logs resource-provider
- 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 || true

- 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 b9f2481

Please sign in to comment.