name: make installcheck
on: [push, pull_request]
jobs:
  test:
    strategy:
      matrix:
        pg:
          - 16
          - 15
          - 14
          - 13
          - 12
          - 11
          - 10
          - 9.6

    name: PostgreSQL ${{ matrix.pg }}
    runs-on: ubuntu-latest
    container: pgxn/pgxn-tools
    steps:

      - name: Start PostgreSQL ${{ matrix.pg }}
        run: pg-start ${{ matrix.pg }}

      - name: Check out the repo
        uses: actions/checkout@v2

      - name: Test on PostgreSQL ${{ matrix.pg }}
        run: pg-build-test
