1919 build-and-test :
2020 strategy :
2121 matrix :
22- postgres : [ 14, 15, 16, 17 ]
22+ postgres : [ 14, 15, 16, 17, 18 ]
2323 runs_on : [ 'ubuntu-22.04', 'ubuntu-22.04-arm' ]
2424 include :
2525 - runs_on : ubuntu-22.04
@@ -91,23 +91,30 @@ jobs:
9191 curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
9292 pipenv install --dev
9393
94- - name : Install PostgreSQL
94+ - name : Install PostgreSQL and postgis
9595 run : |
9696 sudo sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
97+ sudo sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg 18" >> /etc/apt/sources.list.d/pgdg.list'
9798 wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
9899 sudo apt-get update
99100 sudo apt-get -y install build-essential libreadline-dev zlib1g-dev flex bison libxml2-dev \
100101 libxslt-dev libssl-dev libxml2-utils xsltproc ccache pkg-config \
101- gnupg ca-certificates
102- sudo apt-get -y install postgresql-${{ env.PG_MAJOR }}-postgis-3 \
102+ gnupg ca-certificates libkrb5-dev
103+ sudo apt-get -y install postgresql-${{ env.PG_MAJOR }}-postgis-3 \
103104 postgresql-server-dev-${{ env.PG_MAJOR }} \
104- postgresql-client-${{ env.PG_MAJOR }} \
105+ postgresql-client-${{ env.PG_MAJOR }} \
105106 libpq-dev
106107 echo "export PG_MAJOR=${{ env.PG_MAJOR }}" >> $GITHUB_ENV
108+
109+ - uses : actions/checkout@v4
110+ with :
111+ repository : ' pgaudit/pgaudit'
112+ ref : ' integration'
113+ path : pgaudit
107114
108115 - name : Install pgaudit extension
109116 run : |
110- sudo apt-get install -y postgresql- ${{ env.PG_MAJOR }}-pgaudit
117+ cd pgaudit && make install USE_PGXS=1 PG_CONFIG= ${{ env.PG_CONFIG }}
111118
112119 - name : Install azure-cli
113120 run : |
@@ -124,8 +131,8 @@ jobs:
124131
125132 - name : Set up permissions for PostgreSQL
126133 run : |
127- sudo chmod a+rwx $(/usr/lib/postgresql/ ${{ env.PG_MAJOR }}/bin/pg_config --pkglibdir) \
128- $(/usr/lib/postgresql/ ${{ env.PG_MAJOR }}/bin/pg_config --sharedir)/extension \
134+ sudo chmod a+rwx $(${{ env.PG_CONFIG }} --pkglibdir) \
135+ $(${{ env.PG_CONFIG }} --sharedir)/extension \
129136 /var/run/postgresql/
130137
131138 - name : Check format and lint
@@ -134,17 +141,17 @@ jobs:
134141 make check-lint
135142
136143 - name : Run tests without coverage
137- if : ${{ env.PG_MAJOR != '17 ' || matrix.arch != 'x86_64' }}
144+ if : ${{ env.PG_MAJOR != '18 ' || matrix.arch != 'x86_64' }}
138145 run : |
139146 make check
140147
141148 - name : Run tests with coverage
142- if : ${{ env.PG_MAJOR == '17 ' && matrix.arch == 'x86_64' }}
149+ if : ${{ env.PG_MAJOR == '18 ' && matrix.arch == 'x86_64' }}
143150 run : |
144151 make check-with-coverage
145152
146153 - name : Upload coverage report to Codecov
147- if : ${{ env.PG_MAJOR == '17 ' && matrix.arch == 'x86_64' }}
154+ if : ${{ env.PG_MAJOR == '18 ' && matrix.arch == 'x86_64' }}
148155 uses : codecov/codecov-action@v4
149156 with :
150157 fail_ci_if_error : true
0 commit comments