corrected typo,

build database in test environment explicitly as production_up
This commit is contained in:
Ulf Gebhardt 2022-01-25 21:39:11 +01:00
parent 61bb14ac7c
commit 2a48133790
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
3 changed files with 11 additions and 8 deletions

View File

@ -511,13 +511,13 @@ jobs:
- name: Sleep for 30 seconds
run: sleep 30s
shell: bash
#- name: backend | docker-compose database
# run: docker-compose -f docker-compose.yml -f docker-compose.test.yml up --detach --no-deps database
#- name: Sleep for 30 seconds
# run: sleep 30s
# shell: bash
- name: backend | docker-compose database
run: docker-compose -f docker-compose.yml -f docker-compose.test.yml up --detach --no-deps database
- name: Sleep for 30 seconds
run: sleep 30s
shell: bash
- name: backend Unit tests | test
run: cd database && yarn && yarn build && cd ../backend && yarn && yarn CI_worklfow_test
run: cd database && yarn && yarn build && cd ../backend && yarn && yarn CI_workflow_test
# run: docker-compose -f docker-compose.yml -f docker-compose.test.yml exec -T backend yarn test
##########################################################################
# COVERAGE CHECK BACKEND #################################################

View File

@ -13,7 +13,7 @@
"start": "node build/index.js",
"dev": "nodemon -w src --ext ts --exec ts-node src/index.ts",
"lint": "eslint . --ext .js,.ts",
"CI_worklfow_test": "jest --runInBand --coverage ",
"CI_workflow_test": "jest --runInBand --coverage ",
"test": "NODE_ENV=development jest --runInBand --coverage "
},
"dependencies": {

View File

@ -19,7 +19,10 @@ services:
########################################################
# DATABASE #############################################
########################################################
#database:
database:
build:
context: ./database
target: production_up
# restart: always # this is very dangerous, but worth a test for the delayed mariadb startup at first run
#########################################################