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,24 +91,21 @@ 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
107108
108- - name : Install pgaudit extension
109- run : |
110- sudo apt-get install -y postgresql-${{ env.PG_MAJOR }}-pgaudit
111-
112109 - name : Install azure-cli
113110 run : |
114111 curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /etc/apt/keyrings/microsoft.gpg > /dev/null
@@ -124,27 +121,37 @@ jobs:
124121
125122 - name : Set up permissions for PostgreSQL
126123 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 \
124+ sudo chmod a+rwx $(${{ env.PG_CONFIG }} --pkglibdir) \
125+ $(${{ env.PG_CONFIG }} --sharedir)/extension \
129126 /var/run/postgresql/
130127
128+ - uses : actions/checkout@v4
129+ with :
130+ repository : ' pgaudit/pgaudit'
131+ ref : ' integration'
132+ path : pgaudit
133+
134+ - name : Install pgaudit extension
135+ run : |
136+ cd pgaudit && make install USE_PGXS=1 PG_CONFIG=${{ env.PG_CONFIG }}
137+
131138 - name : Check format and lint
132139 run : |
133140 make check-format
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