-
Notifications
You must be signed in to change notification settings - Fork 176
48 lines (38 loc) · 1.11 KB
/
regression.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: make installcheck
on: [push, pull_request]
jobs:
test:
strategy:
fail-fast: false
matrix:
pg:
- 16
- 15
- 14
- 13
- 12
- 11
- 10
- 9.6
- 9.5
name: PostgreSQL ${{ matrix.pg }}
runs-on: ubuntu-latest
container: pgxn/pgxn-tools
steps:
- name: Start PostgreSQL ${{ matrix.pg }}
run: pg-start ${{ matrix.pg }}
- name: Install build-dependencies
run: apt-get install -y liblz4-dev libreadline-dev zlib1g-dev libzstd-dev
- name: Check out the repo
uses: actions/checkout@v3
- name: Put pg_repack on PATH
run: echo "$PWD/bin" >> $GITHUB_PATH
- name: Create testts directory
run: sudo -u postgres mkdir /tmp/testts
- name: Create testts tablespace
run: sudo -u postgres psql -c "CREATE TABLESPACE testts LOCATION '/tmp/testts'"
- name: Test on PostgreSQL ${{ matrix.pg }}
run: pg-build-test
- name: Show regression.diffs
if: ${{ failure() }}
run: cat regress/regression.diffs