Skip to content

Commit 0bb527d

Browse files
committed
wip
1 parent 0e6e4fd commit 0bb527d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/ci.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,11 @@ jobs:
379379
env:
380380
PGPORT: ${{ env.PGPORT }}
381381
run: |
382-
echo "DATABASE_URL=${{ steps.pg.outputs.connection-uri }}"
383-
echo "Print the same in base64 to bypass Github's obfuscation (uses hardcoded password):"
384-
echo "${{ steps.pg.outputs.connection-uri }}" | base64
382+
if [ "$RUNNER_OS" == "Linux" ]; then
383+
export DATABASE_URL="postgres://${{ env.PGUSER }}:${{ env.PGUSER }}@${{ env.PGHOST }}:${{ env.PGPORT }}/${{ env.PGDATABASE }}?sslmode=require"
384+
else
385+
export PGSERVICE="${{ steps.pg.outputs.service-name }}"
386+
fi
385387
tests/fixtures/initdb.sh
386388
387389
- name: Copy static files
@@ -402,7 +404,7 @@ jobs:
402404
fi
403405
tests/test.sh
404406
env:
405-
DATABASE_URL: ${{ env.DATABASE_URL }}
407+
DATABASE_URL: postgres://${{ env.PGUSER }}:${{ env.PGUSER }}@${{ env.PGHOST }}:${{ env.PGPORT }}/${{ env.PGDATABASE }}?sslmode=require
406408
- name: Compare test output results (Linux)
407409
if: matrix.target == 'x86_64-unknown-linux-gnu'
408410
run: diff --brief --recursive --new-file tests/output tests/expected
@@ -422,7 +424,7 @@ jobs:
422424
export MBTILES_BIN=/usr/bin/mbtiles${{ matrix.ext }}
423425
tests/test.sh
424426
env:
425-
DATABASE_URL: ${{ env.DATABASE_URL }}
427+
DATABASE_URL: postgres://${{ env.PGUSER }}:${{ env.PGUSER }}@${{ env.PGHOST }}:${{ env.PGPORT }}/${{ env.PGDATABASE }}?sslmode=require
426428
- name: Save test output (on error)
427429
if: failure()
428430
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)