Skip to content

Commit

Permalink
include env files in build process
Browse files Browse the repository at this point in the history
  • Loading branch information
ulfgebhardt committed Apr 3, 2021
1 parent ee4a63b commit dfe6f67
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,10 @@ jobs:
##########################################################################
# UNIT TESTS BACKEND #####################################################
##########################################################################
#- name: backend | copy env files webapp
# run: cp webapp/.env.template webapp/.env
#- name: backend | copy env files backend
# run: cp backend/.env.template backend/.env
- name: backend | copy env files webapp
run: cp webapp/.env.template webapp/.env
- name: backend | copy env files backend
run: cp backend/.env.template backend/.env
- name: backend | docker-compose
run: docker-compose -f docker-compose.yml -f docker-compose.test.yml up --detach --no-deps neo4j backend
- name: backend | Initialize Database
Expand Down Expand Up @@ -231,10 +231,10 @@ jobs:
##########################################################################
# UNIT TESTS WEBAPP #####################################################
##########################################################################
#- name: backend | copy env files webapp
# run: cp webapp/.env.template webapp/.env
#- name: backend | copy env files backend
# run: cp backend/.env.template backend/.env
- name: backend | copy env files webapp
run: cp webapp/.env.template webapp/.env
- name: backend | copy env files backend
run: cp backend/.env.template backend/.env
- name: backend | docker-compose
run: docker-compose -f docker-compose.yml -f docker-compose.test.yml up --detach --no-deps webapp
- name: webapp | Unit tests
Expand Down
3 changes: 0 additions & 3 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ services:
target: test
environment:
- NODE_ENV="test"
- JWT_SECRET="b/&&7b78BF&fv/Vd"
- MAPBOX_TOKEN="pk.eyJ1IjoiYnVzZmFrdG9yIiwiYSI6ImNraDNiM3JxcDBhaWQydG1uczhpZWtpOW4ifQ.7TNRTO-o9aK1Y6MyW_Nd4g"
- PRIVATE_KEY_PASSPHRASE="a7dsf78sadg87ad87sfagsadg78"

########################################################
# NEO4J ################################################
Expand Down

0 comments on commit dfe6f67

Please sign in to comment.