Skip to content

Commit

Permalink
Switched to PostgreSQL 14 (#111)
Browse files Browse the repository at this point in the history
Co-authored-by: Ivan Vakhrushev <[email protected]>
  • Loading branch information
mfvanek and Ivan Vakhrushev authored Oct 17, 2021
1 parent 4819c91 commit 8b0fb05
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
build:
strategy:
matrix:
pg_version: ["9.6.20", 10.15, "11.10", 12.5, 13.1]
pg_version: ["9.6.23", "10.18", "11.13", "12.8", "13.4", "14.0"]
env:
TEST_PG_VERSION: ${{ matrix.pg_version }}
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
[![PostgreSQL 11](https://img.shields.io/badge/PostgreSQL-11-green.svg)](https://www.postgresql.org/about/news/1894/ "PostgreSQL 11")
[![PostgreSQL 12](https://img.shields.io/badge/PostgreSQL-12-green.svg)](https://www.postgresql.org/about/news/1976/ "PostgreSQL 12")
[![PostgreSQL 13](https://img.shields.io/badge/PostgreSQL-13-green.svg)](https://www.postgresql.org/about/news/postgresql-13-released-2077/ "PostgreSQL 13")
[![PostgreSQL 14](https://img.shields.io/badge/PostgreSQL-14-green.svg)](https://www.postgresql.org/about/news/postgresql-14-released-2318/ "PostgreSQL 14")

## Available checks
**pg-index-health** allows you to detect the following problems:
Expand Down
15 changes: 15 additions & 0 deletions config/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,21 @@
<message key="ws.notPreceded"
value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/>
</module>
<module name="NoArrayTrailingComma"/>
<module name="NoEnumTrailingComma"/>
<module name="AvoidDoubleBraceInitialization"/>
<module name="AvoidNoArgumentSuperConstructorCall"/>
<module name="EmptyStatement"/>
<module name="OneStatementPerLine"/>
<module name="MultipleVariableDeclarations"/>
<module name="ArrayTypeStyle"/>
<module name="MissingSwitchDefault"/>
<module name="DefaultComesLast"/>
<module name="FallThrough"/>
<module name="UpperEll"/>
<module name="ModifierOrder"/>
<module name="NoClone"/>
<module name="NoFinalizer"/>
<module name="EmptyLineSeparator">
<property name="tokens"
value="PACKAGE_DEF, IMPORT, STATIC_IMPORT, CLASS_DEF, INTERFACE_DEF, ENUM_DEF,
Expand Down Expand Up @@ -266,6 +274,13 @@
<property name="tokens" value="IMPORT, STATIC_IMPORT, PACKAGE_DEF"/>
</module>
<module name="UnusedImports"/>
<module name="IllegalImport">
<property name="illegalClasses"
value="org.springframework.lang.NonNull, org.springframework.lang.Nullable,
io.micrometer.core.lang.NonNull, io.micrometer.core.lang.Nullable,
org.elasticsearch.common.Nullable, org.apache.thrift.annotation.Nullable,
org.junit.Test"/>
</module>
<module name="MethodParamPad">
<property name="tokens"
value="CTOR_DEF, LITERAL_NEW, METHOD_CALL, METHOD_DEF,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void beforeAll(ExtensionContext extensionContext) {

@Nonnull
private static String preparePostgresVersion() {
return Optional.ofNullable(System.getenv("TEST_PG_VERSION")).orElse("13.1");
return Optional.ofNullable(System.getenv("TEST_PG_VERSION")).orElse("14.0");
}

@Nonnull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ final class PostgresVersionTest extends DatabaseAwareTestBase {
void checkPgVersion() {
String requiredPgVersionString = System.getenv(PG_VERSION_ENVIRONMENT_VARIABLE);
if (requiredPgVersionString == null) {
requiredPgVersionString = "13.1 (Debian 13.1-";
requiredPgVersionString = "14.0 (Debian 14.0-";
}
final String actualPgVersionString = readPgVersion();
assertThat(actualPgVersionString, startsWith(requiredPgVersionString));
Expand Down

0 comments on commit 8b0fb05

Please sign in to comment.