Skip to content

Commit

Permalink
Chore: modify deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
HC-kang committed Oct 22, 2023
1 parent 5910e1c commit b477237
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,23 @@ jobs:
test_command: "npm run test:cov"

- name: migrate database
env:
DATABASE_CONNECTION: 'postgres'
DATABASE_HOST: 'localhost'
DATABASE_PORT: '5432'
DATABASE_USERNAME: 'postgres'
DATABASE_PASSWORD: 'postgres'
DATABASE_NAME: 'postgres'
run: npm run migration:run

- name: run e2e tests
env:
DATABASE_CONNECTION: 'postgres'
DATABASE_HOST: 'localhost'
DATABASE_PORT: '5432'
DATABASE_USERNAME: 'postgres'
DATABASE_PASSWORD: 'postgres'
DATABASE_NAME: 'postgres'
run: npm run test:e2e

- name: Notify Slack on Failure
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/testOnPush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ env:
ECR_REPOSITORY_NESTJS: 'hh-nestjs'
JWT_SECRET: ${{ secrets.JWT_SECRET }}
JWT_EXPIRES_IN: ${{ secrets.JWT_EXPIRES_IN }}
DATABASE_CONNECTION: postgres
DATABASE_HOST: localhost
DATABASE_PORT: 5432
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: postgres
DATABASE_NAME: postgres
DATABASE_CONNECTION: 'postgres'
DATABASE_HOST: 'localhost'
DATABASE_PORT: '5432'
DATABASE_USERNAME: 'postgres'
DATABASE_PASSWORD: 'postgres'
DATABASE_NAME: 'postgres'
GITHUB_ACTIONS: false

jobs:
Expand Down

0 comments on commit b477237

Please sign in to comment.