Merge pull request #11 from tbe/fixes #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |