Skip to content

Commit

Permalink
Try reloading database config
Browse files Browse the repository at this point in the history
  • Loading branch information
elektronaut committed Nov 26, 2024
1 parent 235537d commit 0f0ce7a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ jobs:
name: RSpec
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
env:
PGHOST: localhost
PGUSER: ${{ env.POSTGRES_USER }}
PGPASSWORD: ${{ env.POSTGRES_PASSWORD }}
strategy:
matrix:
ruby: ["3.2", "3.3"]
Expand Down Expand Up @@ -85,16 +89,11 @@ jobs:
- name: Create database
env:
RAILS_ENV: test
PGHOST: localhost
PGUSER: ${{ env.POSTGRES_USER }}
PGPASSWORD: ${{ env.POSTGRES_PASSWORD }}
run: |
bundle exec rake db:migrate
- name: Reload database config
run: psql -c "SELECT pg_reload_conf()"
- name: Run tests
env:
PGHOST: localhost
PGUSER: ${{ env.POSTGRES_USER }}
PGPASSWORD: ${{ env.POSTGRES_PASSWORD }}
run: bundle exec rspec
- name: Send results to Code Climate
uses: paambaati/[email protected]
Expand Down

0 comments on commit 0f0ce7a

Please sign in to comment.