Test with multiple versions of Ubuntu

This commit is contained in:
Andrew Kane
2022-12-23 10:58:24 -08:00
parent 141fea8d08
commit 563f888ef1

View File

@@ -2,12 +2,22 @@ name: build
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
ubuntu: ubuntu:
runs-on: ubuntu-latest runs-on: ${{ matrix.os }}
if: ${{ !startsWith(github.ref_name, 'mac') && !startsWith(github.ref_name, 'windows') }} if: ${{ !startsWith(github.ref_name, 'mac') && !startsWith(github.ref_name, 'windows') }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
postgres: [15, 14, 13, 12, 11] include:
- postgres: 15
os: ubuntu-22.04
- postgres: 14
os: ubuntu-22.04
- postgres: 13
os: ubuntu-20.04
- postgres: 12
os: ubuntu-20.04
- postgres: 11
os: ubuntu-18.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ankane/setup-postgres@v1 - uses: ankane/setup-postgres@v1