diff --git a/.github/workflows/postgres.yml b/.github/workflows/postgres.yml index dc14fac17..4d3844f8c 100644 --- a/.github/workflows/postgres.yml +++ b/.github/workflows/postgres.yml @@ -1,6 +1,6 @@ name: Tests - PostgreSQL -on: [pull_request] +on: [push, pull_request] jobs: postgresql: @@ -79,6 +79,7 @@ jobs: # Initialize the DB - name: 'Setup Test DB' run: | + cat config/database.yml bundle exec rails db:setup RAILS_ENV=test bundle exec rails db:migrate RAILS_ENV=test diff --git a/config/database.yml.sample b/config/database.yml.sample index ea0354e1d..47b41bc1e 100644 --- a/config/database.yml.sample +++ b/config/database.yml.sample @@ -13,3 +13,4 @@ development: test: <<: *defaults + database: roadmap_test