-
Notifications
You must be signed in to change notification settings - Fork 4
37 lines (33 loc) · 1.08 KB
/
ci.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
name: CI
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
pg:
- 15
- 14
- 13
- 12
- 11
- 10
name: 🐘 PostgreSQL ${{ matrix.pg }}
runs-on: ubuntu-latest
container: pgxn/pgxn-tools
steps:
- name: Start PostgreSQL ${{ matrix.pg }}
run: pg-start ${{ matrix.pg }}
- name: Create root user
run: sudo -u postgres createuser --superuser root
- name: Check out the repo
uses: actions/checkout@v2
- name: Enable backports
run: echo 'deb http://deb.debian.org/debian bullseye-backports main' | sudo tee -a /etc/apt/sources.list
- name: Run apt-get update
run: sudo apt-get update
- name: Install extra build dependencies
run: sudo apt-get install -y golang -t bullseye-backports
- name: Build
run: make REVISION="xxxx" BRANCH="ci" VERSION="unittest" BUILD_USER="ci" BUILD_DATE="0000-00-00"
- name: Test on PostgreSQL ${{ matrix.pg }}
run: if ! make installcheck; then cat regression.diffs; exit 1; fi