@@ -20,29 +20,20 @@ jobs:
20
20
# Keys:
21
21
# - custom_ini: Whether to run with specific custom ini settings to hit very specific
22
22
# code conditions.
23
- # - experimental: Whether the build is "allowed to fail".
24
23
matrix :
25
- php : ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
24
+ php : ['5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1' ]
26
25
custom_ini : [false]
27
- experimental : [false]
28
26
29
27
include :
30
28
# Builds running the basic tests with different PHP ini settings.
31
29
- php : ' 5.5'
32
30
custom_ini : true
33
- experimental : false
34
31
- php : ' 7.0'
35
32
custom_ini : true
36
- experimental : false
37
-
38
- # Nightly.
39
- - php : ' 8.1'
40
- custom_ini : false
41
- experimental : true
42
33
43
34
name : " PHP: ${{ matrix.php }} ${{ matrix.custom_ini && ' with custom ini settings' || '' }}"
44
35
45
- continue-on-error : ${{ matrix.experimental }}
36
+ continue-on-error : ${{ matrix.php == '8.1' }}
46
37
47
38
steps :
48
39
- name : Checkout code
@@ -54,11 +45,11 @@ jobs:
54
45
# Set the "short_open_tag" ini to make sure specific conditions are tested.
55
46
# Also turn on error_reporting to ensure all notices are shown.
56
47
if [[ ${{ matrix.custom_ini }} == true && "${{ matrix.php }}" == '5.5' ]]; then
57
- echo '::set-output name=PHP_INI::phar.readonly=Off, error_reporting=E_ALL , display_errors=On, date.timezone=Australia/Sydney, short_open_tag=On, asp_tags=On'
48
+ echo '::set-output name=PHP_INI::phar.readonly=Off, error_reporting=-1 , display_errors=On, date.timezone=Australia/Sydney, short_open_tag=On, asp_tags=On'
58
49
elif [[ ${{ matrix.custom_ini }} == true && "${{ matrix.php }}" == '7.0' ]]; then
59
- echo '::set-output name=PHP_INI::phar.readonly=Off, error_reporting=E_ALL , display_errors=On, date.timezone=Australia/Sydney, short_open_tag=On'
50
+ echo '::set-output name=PHP_INI::phar.readonly=Off, error_reporting=-1 , display_errors=On, date.timezone=Australia/Sydney, short_open_tag=On'
60
51
else
61
- echo '::set-output name=PHP_INI::phar.readonly=Off, error_reporting=E_ALL , display_errors=On'
52
+ echo '::set-output name=PHP_INI::phar.readonly=Off, error_reporting=-1 , display_errors=On'
62
53
fi
63
54
64
55
- name : Install PHP
@@ -72,12 +63,12 @@ jobs:
72
63
# Install dependencies and handle caching in one go.
73
64
# @link https://github.com/marketplace/actions/install-composer-dependencies
74
65
- name : Install Composer dependencies - normal
75
- if : ${{ matrix.php < 8.0 }}
66
+ if : ${{ matrix.php < ' 8.0' }}
76
67
uses : " ramsey/composer-install@v1"
77
68
78
69
# For PHP 8.0+, we need to install with ignore platform reqs as PHPUnit 7 is still used.
79
70
- name : Install Composer dependencies - with ignore platform
80
- if : ${{ matrix.php >= 8.0 }}
71
+ if : ${{ matrix.php >= ' 8.0' }}
81
72
uses : " ramsey/composer-install@v1"
82
73
with :
83
74
composer-options : --ignore-platform-reqs
@@ -88,27 +79,27 @@ jobs:
88
79
run : php bin/phpcs --config-set php_path php
89
80
90
81
- name : ' PHPUnit: run the tests'
91
- if : ${{ matrix.php != 8.1 }}
82
+ if : ${{ matrix.php != ' 8.1' }}
92
83
run : vendor/bin/phpunit tests/AllTests.php
93
84
94
85
# We need to ignore the config file so that PHPUnit doesn't try to read it.
95
86
# The config file causes an error on PHP 8.1+ with PHPunit 7, but it's not needed here anyway
96
87
# as we can pass all required settings in the phpunit command.
97
88
- name : ' PHPUnit: run the tests on PHP nightly'
98
- if : ${{ matrix.php == 8.1 }}
89
+ if : ${{ matrix.php == ' 8.1' }}
99
90
run : vendor/bin/phpunit tests/AllTests.php --no-configuration --bootstrap=tests/bootstrap.php --dont-report-useless-tests
100
91
101
92
- name : ' PHPCS: check code style without cache, no parallel'
102
- if : ${{ matrix.custom_ini == false && matrix.php != 7.4 }}
93
+ if : ${{ matrix.custom_ini == false && matrix.php != ' 7.4' }}
103
94
run : php bin/phpcs --no-cache --parallel=1
104
95
105
96
- name : ' PHPCS: check code style to show results in PR'
106
- if : ${{ matrix.custom_ini == false && matrix.php == 7.4 }}
97
+ if : ${{ matrix.custom_ini == false && matrix.php == ' 7.4' }}
107
98
continue-on-error : true
108
99
run : php bin/phpcs --no-cache --parallel=1 --report-full --report-checkstyle=./phpcs-report.xml
109
100
110
101
- name : Show PHPCS results in PR
111
- if : ${{ matrix.custom_ini == false && matrix.php == 7.4 }}
102
+ if : ${{ matrix.custom_ini == false && matrix.php == ' 7.4' }}
112
103
run : cs2pr ./phpcs-report.xml
113
104
114
105
- name : ' Composer: validate config'
0 commit comments