🐛 Debug helper #985
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: integration-test | |
on: | |
pull_request: | |
branches: [main, develop, qa, canary] | |
paths: | |
- "twake/**" | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: build | |
run: cd twake && docker build -t integration-test -f docker/integration-test/Dockerfile . | |
- name: build-node | |
run: cd twake && docker build -t twaketech/twake-node -f docker/twake-node/Dockerfile . | |
- name: run-twake-instance | |
run: cd twake && docker-compose -f docker-compose.onpremise.mongo.yml up -d && sleep 60 | |
- name: get-logs | |
run: cd twake && docker-compose -f docker-compose.onpremise.mongo.yml logs && curl http://localhost:3000 | |
- name: run integration-test | |
run: cd twake && docker run --network host -e SERVER=http://localhost:3000 integration-test |