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