Improved Pg test matrix (#616)
* Add postgres 10/11 to test matrix * Add docker-compose file fo running multiple postgres versions locally * Fix client test for pg 10, modify function details to include specific fields * Try to install latest postgres client * Add concurrency setting
This commit is contained in:
13
.github/workflows/checks.yml
vendored
13
.github/workflows/checks.yml
vendored
@@ -8,6 +8,10 @@ env:
|
||||
GO_VERSION: 1.19
|
||||
CGO_ENABLED: 0
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
name: tests
|
||||
@@ -15,7 +19,7 @@ jobs:
|
||||
timeout-minutes: 30
|
||||
strategy:
|
||||
matrix:
|
||||
pg_version: [12, 13, 14]
|
||||
pg_version: [9.6, 10, 11, 12, 13, 14, 15]
|
||||
|
||||
services:
|
||||
postgres:
|
||||
@@ -32,6 +36,13 @@ jobs:
|
||||
--health-timeout 5s
|
||||
--health-retries 5
|
||||
steps:
|
||||
- name: Install latest Postgres client
|
||||
run: |
|
||||
sudo rm -f /etc/apt/sources.list.d/pgdg.list
|
||||
curl --silent https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add
|
||||
echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
|
||||
sudo apt-get update && sudo apt-get install -y postgresql-client-15
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
Reference in New Issue
Block a user