Skip to content

Commit

Permalink
added ci database
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegPhenomenon committed Jul 25, 2023
1 parent 1cb072f commit ee015a4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,6 @@ jobs:
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

- name: Wait for PostgreSQL to become ready
uses: actions/wait-for-it@v2
with:
host: localhost
port: ${{ job.services.postgres.ports[5432] }}
timeout: 60

- name: config bundler
run: |
Expand All @@ -53,10 +46,12 @@ jobs:
DISABLE_SPRING: 1
run: |
cp config/application.yml.example config/application.yml
cp config/database_ci.yml config/database.yml
bundle exec rake db:create
bundle exec rake db:migrate
bundle exec rake db:schema:load
bundle exec rake db:seed
bundle exec rails assets:precompile
bundle exec rspec spec
- name: Dependabot
Expand Down
11 changes: 11 additions & 0 deletions config/database_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
default: &default
host: localhost
adapter: postgresql
encoding: unicode
pool: 5
username: postgres
password: password

test:
<<: *default
database: eis_billing_system_test

0 comments on commit ee015a4

Please sign in to comment.