From af719dd6519ac57d20cd1cbba054d24145765f66 Mon Sep 17 00:00:00 2001 From: aaronskiba Date: Sat, 6 Jul 2024 17:08:24 -0600 Subject: [PATCH] test --- .github/workflows/postgres.yml | 3 ++- config/database.yml.sample | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/postgres.yml b/.github/workflows/postgres.yml index dc14fac17a..452d6df0ec 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: | + bundle exec rails db:create RAILS_ENV=test 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 ea0354e1d4..47b41bc1ee 100644 --- a/config/database.yml.sample +++ b/config/database.yml.sample @@ -13,3 +13,4 @@ development: test: <<: *defaults + database: roadmap_test