Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kovmir committed Jun 28, 2023
1 parent b7ed097 commit d79a921
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/regression.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

defaults:
run:
shell: sh

strategy:
matrix:
pgversion:
- 15
- 14
- 13
- 12
- 11

env:
PGVERSION: ${{ matrix.pgversion }}

steps:
- name: checkout
uses: actions/checkout@v3

- name: install pg
run: |
sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -v $PGVERSION -p -i
sudo -u postgres createuser -s "$USER"
- name: install extension
run: |
sudo -E make install
- name: test
run: |
sudo pg_ctlcluster $PGVERSION main restart
make installcheck
- name: show regression diffs
if: ${{ failure() }}
run: |
cat regression.diffs
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
results
regression.*
!regression.yml

0 comments on commit d79a921

Please sign in to comment.