File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -379,9 +379,11 @@ jobs:
379
379
env :
380
380
PGPORT : ${{ env.PGPORT }}
381
381
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
385
387
tests/fixtures/initdb.sh
386
388
387
389
- name : Copy static files
@@ -402,7 +404,7 @@ jobs:
402
404
fi
403
405
tests/test.sh
404
406
env :
405
- DATABASE_URL : ${{ env.DATABASE_URL }}
407
+ DATABASE_URL : postgres:// ${{ env.PGUSER }}:${{ env.PGUSER }}@${{ env.PGHOST }}:${{ env.PGPORT }}/${{ env.PGDATABASE }}?sslmode=require
406
408
- name : Compare test output results (Linux)
407
409
if : matrix.target == 'x86_64-unknown-linux-gnu'
408
410
run : diff --brief --recursive --new-file tests/output tests/expected
@@ -422,7 +424,7 @@ jobs:
422
424
export MBTILES_BIN=/usr/bin/mbtiles${{ matrix.ext }}
423
425
tests/test.sh
424
426
env :
425
- DATABASE_URL : ${{ env.DATABASE_URL }}
427
+ DATABASE_URL : postgres:// ${{ env.PGUSER }}:${{ env.PGUSER }}@${{ env.PGHOST }}:${{ env.PGPORT }}/${{ env.PGDATABASE }}?sslmode=require
426
428
- name : Save test output (on error)
427
429
if : failure()
428
430
uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments