Skip to content

Commit 6fb1dc7

Browse files
committed
fix: solve IP issues into git actions
1 parent 74a7e87 commit 6fb1dc7

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/deploy-master.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,20 @@ jobs:
6464
- name: Setup database
6565
env:
6666
RAILS_ENV: test
67-
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/prostaff_test
68-
REDIS_URL: redis://localhost:6379/0
67+
DATABASE_URL: postgresql://postgres:postgres@127.0.0.1:5432/prostaff_test
68+
REDIS_URL: redis://127.0.0.1:6379/0
69+
PGHOST: 127.0.0.1
70+
PGUSER: postgres
71+
PGPASSWORD: postgres
6972
run: |
7073
bundle exec rails db:create
7174
bundle exec rails db:schema:load
7275
7376
- name: Run RSpec tests
7477
env:
7578
RAILS_ENV: test
76-
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/prostaff_test
77-
REDIS_URL: redis://localhost:6379/0
79+
DATABASE_URL: postgresql://postgres:postgres@127.0.0.1:5432/prostaff_test
80+
REDIS_URL: redis://127.0.0.1:6379/0
7881
COVERAGE: true
7982
run: bundle exec rspec --format documentation
8083

0 commit comments

Comments
 (0)