Skip to content

Commit fae4102

Browse files
committed
Refactor handling of ENV vars in postgres workflow
1 parent 6b1edec commit fae4102

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/postgres.yml

Lines changed: 4 additions & 3 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
@@ -79,12 +80,12 @@ jobs:
7980
# Initialize the DB
8081
- name: 'Setup Test DB'
8182
run: |
82-
DISABLE_SPRING=1 RAILS_ENV=test bundle exec rails db:setup
83-
DISABLE_SPRING=1 RAILS_ENV=test bundle exec rails db:migrate
83+
bundle exec rails db:setup
84+
bundle exec rails db:migrate
8485
8586
# Prebuild the CSS, JS and image assets
8687
- name: 'Compile Assets'
87-
run: DISABLE_SPRING=1 bundle exec rails assets:precompile
88+
run: bundle exec rails assets:precompile
8889

8990
# Run the unit and functional tests
9091
- name: 'Run Rspec Unit and Functional Tests'

0 commit comments

Comments
 (0)