Skip to content

Commit

Permalink
fix require init.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ofilangi committed Sep 25, 2024
1 parent bf1c8c3 commit 9ed0ea6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/test_unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ jobs:
db:
image: postgres:latest
# Provide the password for postgres
volumes:
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
env:
POSTGRES_PASSWORD: ep2m2
POSTGRES_DB: ep2m2db
Expand All @@ -55,8 +53,9 @@ jobs:
cache: 'npm'
- name: Installation project s packages
run: npm ci
# - name: Configure database
# run: node ./db/init.js
- name: Configure database
#run: node ./db/init.js
run: PGPASSWORD='ep2m2' psql -U ep2m2 -d ep2m2db -f ./db/init.sql
- name: Test
run: npm run test
- name: Coverage
Expand Down

0 comments on commit 9ed0ea6

Please sign in to comment.