Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ydaniju committed Jul 31, 2024
1 parent cff785a commit f4f5758
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ on:
permissions:
contents: read

env:
DATABASE_URL: postgres://postgres:@localhost:5432/test
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres

jobs:
test:
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@

# Ignore specs coverage
/coverage/.resultset.json
/coverage/.last_run.json
/coverage/.last_run.json
/spec/reports
4 changes: 1 addition & 3 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ development:
# Do not set this db to the same as development or production.
test:
<<: *default
url: <%= ENV['DATABASE_URL'] || "postgres://postgres:@localhost:5432/test" %>
username: postgres
password: postgres
url: <%= ENV['DATABASE_URL'] || "postgres://#{ENV['USER']}:@localhost:5432/test" %>

production:
<<: *default
Expand Down

0 comments on commit f4f5758

Please sign in to comment.