@@ -63,12 +63,12 @@ jobs:
63
63
# Install dependencies and handle caching in one go.
64
64
# @link https://github.com/marketplace/actions/install-composer-dependencies
65
65
- name : Install Composer dependencies - normal
66
- if : ${{ matrix.php < 8.0 }}
66
+ if : ${{ matrix.php < ' 8.0' }}
67
67
uses : " ramsey/composer-install@v1"
68
68
69
69
# For PHP 8.0+, we need to install with ignore platform reqs as PHPUnit 7 is still used.
70
70
- name : Install Composer dependencies - with ignore platform
71
- if : ${{ matrix.php >= 8.0 }}
71
+ if : ${{ matrix.php >= ' 8.0' }}
72
72
uses : " ramsey/composer-install@v1"
73
73
with :
74
74
composer-options : --ignore-platform-reqs
@@ -79,27 +79,27 @@ jobs:
79
79
run : php bin/phpcs --config-set php_path php
80
80
81
81
- name : ' PHPUnit: run the tests'
82
- if : ${{ matrix.php != 8.1 }}
82
+ if : ${{ matrix.php != ' 8.1' }}
83
83
run : vendor/bin/phpunit tests/AllTests.php
84
84
85
85
# We need to ignore the config file so that PHPUnit doesn't try to read it.
86
86
# The config file causes an error on PHP 8.1+ with PHPunit 7, but it's not needed here anyway
87
87
# as we can pass all required settings in the phpunit command.
88
88
- name : ' PHPUnit: run the tests on PHP nightly'
89
- if : ${{ matrix.php == 8.1 }}
89
+ if : ${{ matrix.php == ' 8.1' }}
90
90
run : vendor/bin/phpunit tests/AllTests.php --no-configuration --bootstrap=tests/bootstrap.php --dont-report-useless-tests
91
91
92
92
- name : ' PHPCS: check code style without cache, no parallel'
93
- if : ${{ matrix.custom_ini == false && matrix.php != 7.4 }}
93
+ if : ${{ matrix.custom_ini == false && matrix.php != ' 7.4' }}
94
94
run : php bin/phpcs --no-cache --parallel=1
95
95
96
96
- name : ' PHPCS: check code style to show results in PR'
97
- if : ${{ matrix.custom_ini == false && matrix.php == 7.4 }}
97
+ if : ${{ matrix.custom_ini == false && matrix.php == ' 7.4' }}
98
98
continue-on-error : true
99
99
run : php bin/phpcs --no-cache --parallel=1 --report-full --report-checkstyle=./phpcs-report.xml
100
100
101
101
- name : Show PHPCS results in PR
102
- if : ${{ matrix.custom_ini == false && matrix.php == 7.4 }}
102
+ if : ${{ matrix.custom_ini == false && matrix.php == ' 7.4' }}
103
103
run : cs2pr ./phpcs-report.xml
104
104
105
105
- name : ' Composer: validate config'
0 commit comments