ci: test on Postgres 14 (#1557)

This commit is contained in:
Paolo Barbolini 2021-11-29 21:58:19 +01:00 committed by GitHub
parent 12d9f54c7d
commit f2b3cc8dc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -186,7 +186,7 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
strategy: strategy:
matrix: matrix:
postgres: [13, 9_6] postgres: [14, 9_6]
runtime: [async-std, tokio, actix] runtime: [async-std, tokio, actix]
tls: [native-tls, rustls] tls: [native-tls, rustls]
needs: check needs: check

View File

@ -95,7 +95,7 @@ services:
MYSQL_DATABASE: sqlx MYSQL_DATABASE: sqlx
# #
# PostgreSQL 13.x, 12.x, 11.x 10.x, 9.6.x # PostgreSQL 14.x, 13.x, 12.x, 11.x 10.x, 9.6.x
# https://www.postgresql.org/support/versioning/ # https://www.postgresql.org/support/versioning/
# #
@ -104,7 +104,7 @@ services:
context: . context: .
dockerfile: postgres/Dockerfile dockerfile: postgres/Dockerfile
args: args:
VERSION: 14rc1 VERSION: 14
ports: ports:
- 5432 - 5432
environment: environment:

View File

@ -130,7 +130,7 @@ for runtime in ["async-std", "tokio", "actix"]:
# postgres # postgres
# #
for version in ["13", "12", "11", "10", "9_6"]: for version in ["14", "13", "12", "11", "10", "9_6"]:
run( run(
f"cargo test --no-default-features --features macros,offline,any,all-types,postgres,runtime-{runtime}-{tls}", f"cargo test --no-default-features --features macros,offline,any,all-types,postgres,runtime-{runtime}-{tls}",
comment=f"test postgres {version}", comment=f"test postgres {version}",
@ -139,7 +139,7 @@ for runtime in ["async-std", "tokio", "actix"]:
) )
## +ssl ## +ssl
for version in ["13", "12", "11", "10", "9_6"]: for version in ["14", "13", "12", "11", "10", "9_6"]:
run( run(
f"cargo test --no-default-features --features macros,offline,any,all-types,postgres,runtime-{runtime}-{tls}", f"cargo test --no-default-features --features macros,offline,any,all-types,postgres,runtime-{runtime}-{tls}",
comment=f"test postgres {version} ssl", comment=f"test postgres {version} ssl",