Skip to content

Commit

Permalink
Updates db setup
Browse files Browse the repository at this point in the history
  • Loading branch information
James Jeffers committed Mar 22, 2021
1 parent 5ebe2cb commit b95cc14
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
- name: prepare database
env:
RAILS_ENV: test
run: |
Expand All @@ -54,5 +54,5 @@ jobs:
bundle exec rails db:create
bundle exec rails db:migrate
yarn --frozen-lockfile
name: Run tests
- name: Run tests
run: bundle exec rake
8 changes: 8 additions & 0 deletions config/database.github.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
test:
adapter: postgresql
encoding: unicode
host: localhost
port: 5432
username: postgres
password: postgres
database: app_perf_test

0 comments on commit b95cc14

Please sign in to comment.