Skip to content

Commit 978747d

Browse files
committed
Test latest versions of postgres,mysql,mssql in db tests
1 parent 71e151c commit 978747d

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/pull-db-tests.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@ jobs:
1313

1414
test-pgsql:
1515
if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true'
16+
strategy:
17+
matrix:
18+
postgres: ["14", "latest"]
1619
needs: files-changed
1720
runs-on: ubuntu-latest
1821
services:
1922
pgsql:
20-
image: postgres:14
23+
image: postgres:${{ matrix.postgres }}
2124
env:
2225
POSTGRES_DB: test
2326
POSTGRES_PASSWORD: postgres
@@ -150,12 +153,15 @@ jobs:
150153

151154
test-mysql:
152155
if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true'
156+
strategy:
157+
matrix:
158+
mysql: ["8.0", "latest"]
153159
needs: files-changed
154160
runs-on: ubuntu-latest
155161
services:
156162
mysql:
157163
# the bitnami mysql image has more options than the official one, it's easier to customize
158-
image: bitnami/mysql:8.0
164+
image: bitnami/mysql:${{ matrix.mysql }}
159165
env:
160166
ALLOW_EMPTY_PASSWORD: true
161167
MYSQL_DATABASE: testgitea
@@ -201,11 +207,14 @@ jobs:
201207

202208
test-mssql:
203209
if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true'
210+
strategy:
211+
matrix:
212+
mssql: ["2019-latest", "latest"]
204213
needs: files-changed
205214
runs-on: ubuntu-latest
206215
services:
207216
mssql:
208-
image: mcr.microsoft.com/mssql/server:2019-latest
217+
image: mcr.microsoft.com/mssql/server:${{ matrix.mssql }}
209218
env:
210219
ACCEPT_EULA: Y
211220
MSSQL_PID: Standard

0 commit comments

Comments
 (0)