diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-11-23 13:24:57 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-11-23 13:28:42 +0300 |
commit | ff35680a672c0e7d3cf8a6756b4ae2ce3159106d (patch) | |
tree | 5ee6ddcbd94c6d2583175ef26838b08e0c294205 | |
parent | 01744af674d3c8ec6faac75505de9129c102bef6 (diff) |
ci: Add job testing against minimum Postgres version
Our CI jobs all test against Postgres 12. Given that our minimum
required Postgres version is currently v11, this has allowed us to
introduce an incompatibility with Postgres 11 into our codebase which
wen't undetected by CI.
Add another job which also tests against the minimum required Postgres
version to avoid this in the future.
-rw-r--r-- | .gitlab-ci.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 82f208221..3eff79849 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -186,6 +186,12 @@ test: - GO_VERSION: [ "1.16", "1.17" ] TARGET: test - TARGET: [ test-with-proxies, test-with-praefect, race-go ] + # Execute tests with our minimum required Postgres version, as well. If + # the minimum version changes, please change this to the new minimum + # version. Furthermore, please make sure to update the minimum required + # version in `datastore.CheckPostgresVersion()`. + - POSTGRES_VERSION: "11.14-alpine" + TARGET: [ test, test-with-praefect ] nightly:git: <<: *test_definition |