Skip to content

Commit d79a921

Browse files
committed
Add CI
1 parent b7ed097 commit d79a921

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

.github/workflows/regression.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
defaults:
10+
run:
11+
shell: sh
12+
13+
strategy:
14+
matrix:
15+
pgversion:
16+
- 15
17+
- 14
18+
- 13
19+
- 12
20+
- 11
21+
22+
env:
23+
PGVERSION: ${{ matrix.pgversion }}
24+
25+
steps:
26+
- name: checkout
27+
uses: actions/checkout@v3
28+
29+
- name: install pg
30+
run: |
31+
sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -v $PGVERSION -p -i
32+
sudo -u postgres createuser -s "$USER"
33+
34+
- name: install extension
35+
run: |
36+
sudo -E make install
37+
38+
- name: test
39+
run: |
40+
sudo pg_ctlcluster $PGVERSION main restart
41+
make installcheck
42+
43+
- name: show regression diffs
44+
if: ${{ failure() }}
45+
run: |
46+
cat regression.diffs

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
results
22
regression.*
3+
!regression.yml

0 commit comments

Comments
 (0)