Skip to content

Commit

Permalink
Update rubyonrails.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Naviunni authored Oct 4, 2024
1 parent 32251d2 commit fd0986f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/rubyonrails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ on:
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:11-alpine
ports:
- "5432:5432"
env:
POSTGRES_DB: rails_test
POSTGRES_USER: rails
POSTGRES_PASSWORD: password
# services:
# postgres:
# image: postgres:11-alpine
# ports:
# - "5432:5432"
# env:
# POSTGRES_DB: rails_test
# POSTGRES_USER: rails
# POSTGRES_PASSWORD: password

env:
RAILS_ENV: test
DATABASE_URL: "postgres://rails:password@localhost:5432/rails_test"
# DATABASE_URL: "postgres://rails:password@localhost:5432/rails_test"
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
steps:
- name: Checkout code
Expand All @@ -39,8 +39,8 @@ jobs:
- name: Install dependencies
run: bundle install
# Add or replace database setup steps here
- name: Set up database schema
run: bin/rails db:schema:load
#- name: Set up database schema
# run: bin/rails db:schema:load
# Add or replace test runners here
- name: Run tests
run: bundle exec rspec
Expand Down

0 comments on commit fd0986f

Please sign in to comment.