Skip to content

Commit

Permalink
Fix db migration script in CI/CD workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
koistya committed Feb 4, 2024
1 parent 4e777fd commit e855670
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ jobs:
- run: yarn tsc --build

# Setup test database
- run: yarn db:migrate
- run: yarn db:seed
- run: yarn db migrate --seed

- run: echo "$GCP_SA_KEY" | base64 --decode > "$GOOGLE_APPLICATION_CREDENTIALS"
env:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/push_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ jobs:
- run: yarn workspace api build

# Deploy
# - run: yarn db:migrate --env=test
# - run: yarn db:seed --env=test
# - run: yarn db migrate --seed --env=test
# - run: yarn workspace api deploy --env=test
# env:
# GOOGLE_APPLICATION_CREDENTIALS: ${{ github.workspace }}/gcp-key.json
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
"test": "pnpify vitest",
"tf": "node --no-warnings ./scripts/tf.js",
"g:lint": "yarn lint \"$INIT_CWD\"",
"db": "tsx ./db/cli.ts",
"psql": "yarn db:psql",
"repl": "yarn db:repl"
"db": "tsx ./db/cli.ts"
},
"devDependencies": {
"@emotion/babel-plugin": "^11.11.0",
Expand Down

0 comments on commit e855670

Please sign in to comment.