File tree 1 file changed +28
-2
lines changed
1 file changed +28
-2
lines changed Original file line number Diff line number Diff line change 1
1
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2
2
3
- name : " Platform matrix test"
3
+ name : " Platform test"
4
4
5
5
on :
6
6
pull_request :
10
10
11
11
jobs :
12
12
tests :
13
- name : " Platform matrix test"
13
+ name : " Platform test"
14
14
runs-on : " ubuntu-latest"
15
15
env :
16
16
MYSQL_HOST : ' 127.0.0.1'
17
17
PGSQL_HOST : ' 127.0.0.1'
18
+ MSSQL_HOST : ' 127.0.0.1'
18
19
19
20
strategy :
20
21
fail-fast : false
21
22
matrix :
22
23
php-version :
24
+ - " 7.4"
23
25
- " 8.0"
24
26
- " 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
25
38
26
39
steps :
27
40
- name : " Checkout"
38
51
- name : " Install dependencies"
39
52
run : " composer install --no-interaction --no-progress"
40
53
54
+ - name : " Update packages"
55
+ if : ${{ matrix.update-packages != '' }}
56
+ run : composer require --dev ${{ matrix.update-packages }} -W
57
+
41
58
- name : " Run platform matrix test"
42
59
run : vendor/bin/phpunit --group=platform
43
60
59
76
MYSQL_DATABASE : foo
60
77
ports :
61
78
- " 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
You can’t perform that action at this time.
0 commit comments