Skip to content

Test

Test #226

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04]
postgres-version: [18]
steps:
- uses: actions/checkout@v5
- uses: ./.
with:
postgres-version: ${{ matrix.postgres-version }}
config: |
shared_preload_libraries = 'pg_stat_statements'
database: testdb
user: ${{ matrix.postgres-version == 14 && 'testuser' || '' }}
dev-files: ${{ matrix.postgres-version == 13 }}
- run: createdb testdb2 ${{ matrix.postgres-version == 14 && '-U testuser' || '' }}
- run: psql -d testdb -c 'SHOW server_version' ${{ matrix.postgres-version == 14 && '-U testuser' || '' }}
- run: psql -d testdb -h localhost -c 'SELECT current_user' ${{ matrix.postgres-version == 14 && '-U testuser' || '' }}
- run: psql --version
- run: pg_config
- if: ${{ matrix.postgres-version == 13 }}
run: test -f $(pg_config --includedir-server)/postgres.h