From 66022da96c67f27145559a559d7b0764feae283e 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 | 4 +++- config/database.yml.sample | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/postgres.yml b/.github/workflows/postgres.yml index dc14fac17a..c45e853f53 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,8 @@ jobs: # Initialize the DB - name: 'Setup Test DB' run: | + cat config/database.yml + bin/rails db:create 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