next try run test with db

This commit is contained in:
einhorn_b 2023-09-14 18:11:31 +02:00
parent 59584e86cb
commit e1eadbfbba
2 changed files with 6 additions and 14 deletions

View File

@ -60,22 +60,13 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Download Docker Image
uses: actions/download-artifact@v3
with:
name: docker-dlt-connector-test
path: /tmp
- name: Load Docker Image
run: docker load < /tmp/dlt-connector.tar
- name: Backend | docker-compose mariadb
- name: DLT-Connector | docker-compose mariadb
run: docker-compose -f docker-compose.yml -f docker-compose.test.yml up --detach --no-deps mariadb
- name: Sleep for 30 seconds
run: sleep 30s
shell: bash
- name: Unit tests
run: docker run --env NODE_ENV=test --rm gradido/dlt-connector:test yarn run test
- name: DLT-Connector | Unit tests
run: cd dlt-database && yarn && yarn build && cd ../dlt-connector && yarn && yarn test

View File

@ -173,6 +173,7 @@ services:
- BUILD_VERSION
- BUILD_COMMIT
- NODE_ENV="production"
- DB_HOST=mariadb
# Application only envs
volumes:
# <host_machine_directory>:<container_directory> mirror bidirectional path in local context with path in Docker container