mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
next try run test with db
This commit is contained in:
parent
59584e86cb
commit
e1eadbfbba
19
.github/workflows/test_dlt_connector.yml
vendored
19
.github/workflows/test_dlt_connector.yml
vendored
@ -60,22 +60,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Download Docker Image
|
- name: DLT-Connector | docker-compose mariadb
|
||||||
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
|
|
||||||
run: docker-compose -f docker-compose.yml -f docker-compose.test.yml up --detach --no-deps mariadb
|
run: docker-compose -f docker-compose.yml -f docker-compose.test.yml up --detach --no-deps mariadb
|
||||||
|
|
||||||
- name: Sleep for 30 seconds
|
- name: Sleep for 30 seconds
|
||||||
run: sleep 30s
|
run: sleep 30s
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Unit tests
|
- name: DLT-Connector | Unit tests
|
||||||
run: docker run --env NODE_ENV=test --rm gradido/dlt-connector:test yarn run test
|
run: cd dlt-database && yarn && yarn build && cd ../dlt-connector && yarn && yarn test
|
||||||
|
|||||||
@ -173,6 +173,7 @@ services:
|
|||||||
- BUILD_VERSION
|
- BUILD_VERSION
|
||||||
- BUILD_COMMIT
|
- BUILD_COMMIT
|
||||||
- NODE_ENV="production"
|
- NODE_ENV="production"
|
||||||
|
- DB_HOST=mariadb
|
||||||
# Application only envs
|
# Application only envs
|
||||||
volumes:
|
volumes:
|
||||||
# <host_machine_directory>:<container_directory> – mirror bidirectional path in local context with path in Docker container
|
# <host_machine_directory>:<container_directory> – mirror bidirectional path in local context with path in Docker container
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user