Skip to content

Commit

Permalink
chore(Github action):Update node.js.yml to print db url for testing i…
Browse files Browse the repository at this point in the history
…f it's working
  • Loading branch information
Hakizimana-Clement committed Apr 19, 2024
1 parent 8b36934 commit fd6bc68
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
env:
DB_DIALECT: postgres
DB_TEST_URL: ${{ secrets.DB_TEST_URL }}
DEV_MODE: ${{ secrets.DEV_MODE }}
DB_HOSTED_MODE: ${{ secrets.DB_HOSTED_MODE }}

strategy:
matrix:
Expand All @@ -34,6 +36,10 @@ jobs:
- name: Install dependencies
run: npm install

- name: Print DB_TEST_URL
run: |
echo "DB_TEST_URL: ${{ secrets.DB_TEST_URL }}"
- name: Run tests and build test coverage
run: npm run test:ci

Expand Down
2 changes: 1 addition & 1 deletion src/database/config/db.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ DB_HOST_MODE === "local"
},
});

export const sequelizeConnection: Sequelize = new Sequelize(db_uri as string, {
export const sequelizeConnection: Sequelize = new Sequelize(db_uri, {
dialect: "postgres",
dialectOptions: dialect_option,
logging: true,
Expand Down

0 comments on commit fd6bc68

Please sign in to comment.