@@ -10,31 +10,35 @@ jobs:
10
10
strategy :
11
11
matrix :
12
12
os : [ubuntu-24.04]
13
- phpversion : [""]
13
+ phpversion : ["7.4", "8.0", "8.1", "8.2", "8.3", "8.4 "]
14
14
15
15
steps :
16
16
- name : Checkout code
17
17
uses : actions/checkout@v4
18
18
19
- - name : Install dependencies
20
- run : |
21
- wget https://getcomposer.org/installer -O composer-setup.php
22
- php${{ matrix.phpversion }} composer-setup.php
23
- rm composer-setup.php
24
- php${{ matrix.phpversion }} composer.phar update
25
- cp config.php.in config.php
19
+ - name : Setup PHP
20
+ uses : shivammathur/setup-php@v2
21
+ with :
22
+ php-version : ${{ matrix.phpversion }}
23
+ coverage : none
24
+
25
+ - name : Install Composer
26
+ uses : ramsey/composer-install@v3
27
+
28
+ - name : Copy config
29
+ run : cp config.php.in config.php
30
+
31
+ - name : Show PHP version
32
+ run : php -v
26
33
27
34
- name : Syntax checker
28
35
run : ./.github/scripts/syntax-check.sh
29
36
30
37
- name : Run Install script
31
- run : php${{ matrix.phpversion }} doctrine.php orm:schema-tool:create
38
+ run : php doctrine.php orm:schema-tool:create
32
39
33
40
- name : Generate proxies
34
- run : php${{ matrix.phpversion }} doctrine.php orm:generate-proxies
41
+ run : php doctrine.php orm:generate-proxies
35
42
36
43
- name : Check ORM mapping
37
- run : php${{ matrix.phpversion }} doctrine.php orm:validate-schema |& grep "The mapping files are correct"
38
-
39
- env :
40
- PHP_VERSION : ${{ matrix.phpversion }}
44
+ run : php doctrine.php orm:validate-schema |& grep "The mapping files are correct"
0 commit comments