-
Notifications
You must be signed in to change notification settings - Fork 7
48 lines (41 loc) · 1.76 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Extension tests
on: [push, pull_request]
jobs:
sql-test:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
env:
PGPORT: 54322
PGUSER: postgres
strategy:
matrix:
postgresql_version: [11, 12, 13, 14, 15, 16]
experimental: [false]
repo: ["pgdg"]
# Define the current dev version to be experimental
include:
- postgresql_version: 17
experimental: true
repo: "pgdg-snapshot"
steps:
- uses: actions/checkout@v1
- name: Install PG
run: |
sudo apt update
sudo apt install curl ca-certificates gnupg
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg >/dev/null
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-${{ matrix.repo }} main ${{ matrix.postgresql_version }}" > /etc/apt/sources.list.d/pgdg.list'
sudo apt update
sudo apt install postgresql-${{matrix.postgresql_version}} postgresql-contrib-${{matrix.postgresql_version}} postgresql-server-dev-${{matrix.postgresql_version}}
- name: Setup cluster
run: |
sudo pg_createcluster ${{matrix.postgresql_version}} test -p ${PGPORT} -- --auth-local=trust
- name: (Re)start PG server
run: |
sudo pg_ctlcluster ${{matrix.postgresql_version}} test start
psql -c "ALTER SYSTEM SET wal_level = 'logical'"
sudo pg_ctlcluster ${{matrix.postgresql_version}} test restart
- name: Install
run: sudo PATH=/usr/lib/postgresql/${{matrix.postgresql_version}}/bin:$PATH make install
- name: Run tests
run: PATH=/usr/lib/postgresql/${{matrix.postgresql_version}}/bin:$PATH make installcheck