Skip to content

Commit 4f2113a

Browse files
janedbalondrejmirtes
authored andcommitted
Platform test: expand matrix
1 parent dd27a3e commit 4f2113a

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

Diff for: .github/workflows/platform-matrix-test.yml renamed to .github/workflows/platform-test.yml

+28-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
22

3-
name: "Platform matrix test"
3+
name: "Platform test"
44

55
on:
66
pull_request:
@@ -10,18 +10,31 @@ on:
1010

1111
jobs:
1212
tests:
13-
name: "Platform matrix test"
13+
name: "Platform test"
1414
runs-on: "ubuntu-latest"
1515
env:
1616
MYSQL_HOST: '127.0.0.1'
1717
PGSQL_HOST: '127.0.0.1'
18+
MSSQL_HOST: '127.0.0.1'
1819

1920
strategy:
2021
fail-fast: false
2122
matrix:
2223
php-version:
24+
- "7.4"
2325
- "8.0"
2426
- "8.1"
27+
- "8.2"
28+
- "8.3"
29+
update-packages:
30+
- ""
31+
include:
32+
- php-version: "8.1"
33+
update-packages: doctrine/orm:^3.0 doctrine/dbal:^4.0 carbonphp/carbon-doctrine-types:^3 gedmo/doctrine-extensions:^3
34+
- php-version: "8.2"
35+
update-packages: doctrine/orm:^3.0 doctrine/dbal:^4.0 carbonphp/carbon-doctrine-types:^3 gedmo/doctrine-extensions:^3
36+
- php-version: "8.3"
37+
update-packages: doctrine/orm:^3.0 doctrine/dbal:^4.0 carbonphp/carbon-doctrine-types:^3 gedmo/doctrine-extensions:^3
2538

2639
steps:
2740
- name: "Checkout"
@@ -38,6 +51,10 @@ jobs:
3851
- name: "Install dependencies"
3952
run: "composer install --no-interaction --no-progress"
4053

54+
- name: "Update packages"
55+
if: ${{ matrix.update-packages != '' }}
56+
run: composer require --dev ${{ matrix.update-packages }} -W
57+
4158
- name: "Run platform matrix test"
4259
run: vendor/bin/phpunit --group=platform
4360

@@ -59,3 +76,12 @@ jobs:
5976
MYSQL_DATABASE: foo
6077
ports:
6178
- "3306:3306"
79+
80+
mssql:
81+
image: mcr.microsoft.com/mssql/server:latest
82+
env:
83+
ACCEPT_EULA: Y
84+
SA_PASSWORD: 'Secret.123'
85+
MSSQL_PID: Developer
86+
ports:
87+
- 1433:1433

0 commit comments

Comments
 (0)