diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4dd1f757..38880c4fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -378,6 +378,7 @@ jobs: - name: Init database env: PGPORT: ${{ env.PGPORT }} + DATABASE_URL: postgres://${{ env.PGUSER }}:${{ env.PGUSER }}@${{ env.PGHOST }}:${{ env.PGPORT }}/${{ env.PGDATABASE }}?sslmode=require run: | echo "DATABASE_URL=${{ steps.pg.outputs.connection-uri }}" echo "Print the same in base64 to bypass Github's obfuscation (uses hardcoded password):" @@ -402,7 +403,7 @@ jobs: fi tests/test.sh env: - DATABASE_URL: ${{ env.DATABASE_URL }} + DATABASE_URL: postgres://${{ env.PGUSER }}:${{ env.PGUSER }}@${{ env.PGHOST }}:${{ env.PGPORT }}/${{ env.PGDATABASE }}?sslmode=require - name: Compare test output results (Linux) if: matrix.target == 'x86_64-unknown-linux-gnu' run: diff --brief --recursive --new-file tests/output tests/expected @@ -422,7 +423,7 @@ jobs: export MBTILES_BIN=/usr/bin/mbtiles${{ matrix.ext }} tests/test.sh env: - DATABASE_URL: ${{ env.DATABASE_URL }} + DATABASE_URL: postgres://${{ env.PGUSER }}:${{ env.PGUSER }}@${{ env.PGHOST }}:${{ env.PGPORT }}/${{ env.PGDATABASE }}?sslmode=require - name: Save test output (on error) if: failure() uses: actions/upload-artifact@v4