From 0f0ce7a3563420b407cdf061efc3b9115df6059f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Inge=20J=C3=B8rgensen?= Date: Tue, 26 Nov 2024 19:49:36 +0100 Subject: [PATCH] Try reloading database config --- .github/workflows/build.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b133692b..f9bfae38 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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"] @@ -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/codeclimate-action@v5.0.0