From 978747dd37859f1541ee3e33f4f15fb9cf9ed962 Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 4 Jul 2025 16:16:36 +0200 Subject: [PATCH 1/2] Test latest versions of postgres,mysql,mssql in db tests --- .github/workflows/pull-db-tests.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pull-db-tests.yml b/.github/workflows/pull-db-tests.yml index 55c2d2bf5e..79a71dc742 100644 --- a/.github/workflows/pull-db-tests.yml +++ b/.github/workflows/pull-db-tests.yml @@ -13,11 +13,14 @@ jobs: test-pgsql: if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true' + strategy: + matrix: + postgres: ["14", "latest"] needs: files-changed runs-on: ubuntu-latest services: pgsql: - image: postgres:14 + image: postgres:${{ matrix.postgres }} env: POSTGRES_DB: test POSTGRES_PASSWORD: postgres @@ -150,12 +153,15 @@ jobs: test-mysql: if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true' + strategy: + matrix: + mysql: ["8.0", "latest"] needs: files-changed runs-on: ubuntu-latest services: mysql: # the bitnami mysql image has more options than the official one, it's easier to customize - image: bitnami/mysql:8.0 + image: bitnami/mysql:${{ matrix.mysql }} env: ALLOW_EMPTY_PASSWORD: true MYSQL_DATABASE: testgitea @@ -201,11 +207,14 @@ jobs: test-mssql: if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true' + strategy: + matrix: + mssql: ["2019-latest", "latest"] needs: files-changed runs-on: ubuntu-latest services: mssql: - image: mcr.microsoft.com/mssql/server:2019-latest + image: mcr.microsoft.com/mssql/server:${{ matrix.mssql }} env: ACCEPT_EULA: Y MSSQL_PID: Standard From c6435674a35171f1e5024799c4a66f89ae0fe66d Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 4 Jul 2025 16:22:02 +0200 Subject: [PATCH 2/2] disable fail-fast --- .github/workflows/pull-db-tests.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/pull-db-tests.yml b/.github/workflows/pull-db-tests.yml index 79a71dc742..ca219a5879 100644 --- a/.github/workflows/pull-db-tests.yml +++ b/.github/workflows/pull-db-tests.yml @@ -14,6 +14,7 @@ jobs: test-pgsql: if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true' strategy: + fail-fast: false matrix: postgres: ["14", "latest"] needs: files-changed @@ -154,6 +155,7 @@ jobs: test-mysql: if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true' strategy: + fail-fast: false matrix: mysql: ["8.0", "latest"] needs: files-changed @@ -208,6 +210,7 @@ jobs: test-mssql: if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true' strategy: + fail-fast: false matrix: mssql: ["2019-latest", "latest"] needs: files-changed