63
63
#
64
64
# The matrix is set up so as not to duplicate the builds which are run for code coverage.
65
65
php : ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3", "8.4"]
66
- phpcs_version : ["lowest", "stable", "4.x-dev"]
67
-
68
- exclude :
69
- - php : " 8.3"
70
- phpcs_version : " lowest"
71
-
72
- include :
73
- # Add some builds with variations of the dependency versions.
74
- - php : " 8.4"
75
- phpcs_version : " stable"
76
-
77
- # Test against dev versions of all dependencies with select PHP versions for early detection of issues.
78
- - php : " 7.2"
79
- phpcs_version : " dev-master"
80
- - php : " 7.2"
81
- phpcs_version : " 4.x-dev"
82
- - php : " 7.4"
83
- phpcs_version : " 4.x-dev"
84
- - php : " 8.2"
85
- phpcs_version : " 4.x-dev"
66
+ phpcs_version : ["4.x-dev"]
86
67
87
68
name : " Test: PHP ${{ matrix.php }} - PHPCS ${{ matrix.phpcs_version }}"
88
69
@@ -108,14 +89,6 @@ jobs:
108
89
ini-values : ${{ steps.set_ini.outputs.PHP_INI }}
109
90
coverage : none
110
91
111
- - name : " Composer: set PHPCS version for tests (dev)"
112
- if : ${{ contains( matrix.phpcs_version, 'dev') }}
113
- run : composer require squizlabs/php_codesniffer:"${{ matrix.phpcs_version }}" --no-update --no-scripts --no-interaction
114
-
115
- - name : " Composer: use lock file when necessary"
116
- if : ${{ matrix.phpcs_version == 'lowest' }}
117
- run : composer config --unset lock
118
-
119
92
# Install dependencies and handle caching in one go.
120
93
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
121
94
- name : Install Composer dependencies
@@ -124,10 +97,6 @@ jobs:
124
97
# Bust the cache at least once a month - output format: YYYY-MM.
125
98
custom-cache-suffix : $(date -u "+%Y-%m")
126
99
127
- - name : " Composer: set PHPCS version for tests (lowest)"
128
- if : ${{ matrix.phpcs_version == 'lowest' }}
129
- run : composer update squizlabs/php_codesniffer --prefer-lowest --no-scripts --no-interaction
130
-
131
100
- name : Composer info
132
101
run : composer info
133
102
0 commit comments