Skip to content

Commit b20e952

Browse files
committed
Refactor handling of ENV vars in postgres workflow
1 parent 61171b3 commit b20e952

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/postgres.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
env:
2828
RAILS_ENV: test
2929
DATABASE_URL: postgres://postgres:@localhost:5432/roadmap_test
30+
DISABLE_SPRING: 1
3031

3132
steps:
3233
# Checkout the repo
@@ -91,8 +92,8 @@ jobs:
9192
# Initialize the DB
9293
- name: 'Setup Test DB'
9394
run: |
94-
DISABLE_SPRING=1 bundle exec rails db:setup RAILS_ENV=test
95-
bundle exec rails db:migrate RAILS_ENV=test
95+
bundle exec rails db:setup
96+
bundle exec rails db:migrate
9697
9798
# Prebuild the CSS, JS and image assets
9899
- name: 'Compile Assets'

0 commit comments

Comments
 (0)