diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea0748e9..06f7f86b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,15 +13,16 @@ jobs: matrix: java: [8, 11] scala: [2.11.12, 2.12.13, 2.13.5] - postgres: [11, 12, 13, 14] + postgres: [11] name: Test (Postgres ${{ matrix.postgres }} Scala ${{ matrix.scala }} Java ${{ matrix.java }}) runs-on: ubuntu-latest + env: + SLICK_PG_TEST_POSTGRES_IMAGE_TAG: ${{ matrix.postgres }} steps: - uses: actions/checkout@v2 - uses: coursier/cache-action@v5 - uses: actions/setup-node@v2 - uses: olafurpg/setup-scala@v10 with: - distribution: temurin java-version: ${{ matrix.java }} - - run: sbt -DSLICK_PG_TEST_POSTGRES_IMAGE_TAG=${{ matrix.postgres }} ++${{ matrix.scala }} test \ No newline at end of file + - run: sbt ++${{ matrix.scala }} test \ No newline at end of file diff --git a/README.md b/README.md index c5c6c70b..0e8a2fc2 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Slick-pg - Pg_trgm -** _Tested on `PostgreSQL 11/12/13/14` with `Slick 3.3.3`._ +** _Tested on `PostgreSQL 11` with `Slick 3.3.3`._ ** _`Java 8`+ is required._ diff --git a/core/src/test/scala/com/github/tminglei/slickpg/PostgresContainer.scala b/core/src/test/scala/com/github/tminglei/slickpg/PostgresContainer.scala index 4d5b046a..81138071 100644 --- a/core/src/test/scala/com/github/tminglei/slickpg/PostgresContainer.scala +++ b/core/src/test/scala/com/github/tminglei/slickpg/PostgresContainer.scala @@ -13,7 +13,7 @@ trait PostgresContainer extends ForAllTestContainer { self: Suite => sys.env .get(variable) .orElse(sys.props.get(variable)) - .getOrElse("latest") + .getOrElse("11") } override val container: PostgreSQLContainer = PostgreSQLContainer(