Skip to content

Commit

Permalink
Add PostgreSQL 14/15 to CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
dwsteele committed Aug 6, 2023
1 parent f1bd39a commit 8f03d09
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,9 @@ jobs:

- name: Run PG 13 Test
run: docker run -v ${GITHUB_WORKSPACE?}/pgaudit-analyze:/pgaudit-analyze pgaudit-analyze-test /pgaudit-analyze/test/test.pl --pgsql-bin=/usr/lib/postgresql/13/bin

- name: Run PG 14 Test
run: docker run -v ${GITHUB_WORKSPACE?}/pgaudit-analyze:/pgaudit-analyze pgaudit-analyze-test /pgaudit-analyze/test/test.pl --pgsql-bin=/usr/lib/postgresql/14/bin

- name: Run PG 15 Test
run: docker run -v ${GITHUB_WORKSPACE?}/pgaudit-analyze:/pgaudit-analyze pgaudit-analyze-test /pgaudit-analyze/test/test.pl --pgsql-bin=/usr/lib/postgresql/15/bin
8 changes: 8 additions & 0 deletions test/Dockerfile.debian
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ RUN apt-get install -y postgresql-10 postgresql-server-dev-10
RUN apt-get install -y postgresql-11 postgresql-server-dev-11
RUN apt-get install -y postgresql-12 postgresql-server-dev-12
RUN apt-get install -y postgresql-13 postgresql-server-dev-13
RUN apt-get install -y postgresql-14 postgresql-server-dev-14
RUN apt-get install -y postgresql-15 postgresql-server-dev-15

# Install Perl packages
RUN apt-get install -y libdbd-pg-perl libipc-system-simple-perl libterm-readkey-perl
Expand All @@ -49,5 +51,11 @@ RUN make -C /root/pgaudit/12 install USE_PGXS=1 PG_CONFIG=/usr/lib/postgresql/12
RUN git clone https://github.com/pgaudit/pgaudit.git -b REL_13_STABLE /root/pgaudit/13
RUN make -C /root/pgaudit/13 install USE_PGXS=1 PG_CONFIG=/usr/lib/postgresql/13/bin/pg_config

RUN git clone https://github.com/pgaudit/pgaudit.git -b REL_14_STABLE /root/pgaudit/14
RUN make -C /root/pgaudit/14 install USE_PGXS=1 PG_CONFIG=/usr/lib/postgresql/14/bin/pg_config

RUN git clone https://github.com/pgaudit/pgaudit.git -b REL_15_STABLE /root/pgaudit/15
RUN make -C /root/pgaudit/15 install USE_PGXS=1 PG_CONFIG=/usr/lib/postgresql/15/bin/pg_config

USER postgres
WORKDIR /var/lib/postgresql

0 comments on commit 8f03d09

Please sign in to comment.