Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 14 additions & 48 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,80 +25,46 @@ jobs:
# as well as add extra jobs in `include`.
# @link https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix
#
# IMPORTANT: test runs shouldn't fail because of PHPCS being incompatible with a PHP version.
# - PHPCS will run without errors on PHP 5.4 - 7.4 on all supported PHPCS versions.
# - PHP 8.0 needs PHPCS 3.5.7+ to run without errors.
# - PHP 8.1 needs PHPCS 3.6.1+ to run without errors.
# - PHP 8.2 needs PHPCS 3.6.1+ to run without errors.
# - PHP 8.3 needs PHPCS 3.8.0+ to run without errors (though the errors don't affect this package).
# - PHP 8.4 needs PHPCS 3.11.0+ to run without errors (though the errors don't affect this package).
# - PHP 8.5 needs PHPCS 3.13.4+ to run without errors.
#
# The matrix is set up so as not to duplicate the builds which are run for code coverage.
php: ["5.5", "5.6", "7.0", "7.1", "7.2", "7.3"]
phpcs_version: ["3.13.5", "4.0.0", "4.x-dev"]
php: ["5.5", "5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3", "8.4", "8.5"]
phpcs_version: ["3.13.6", "4.0.2", "4.x-dev"]

exclude:
# PHPCS 4.x requires PHP 7.2+
- php: "5.5"
phpcs_version: "4.0.0"
phpcs_version: "4.0.2"
- php: "5.5"
phpcs_version: "4.x-dev"
- php: "5.6"
phpcs_version: "4.0.0"
phpcs_version: "4.0.2"
- php: "5.6"
phpcs_version: "4.x-dev"
- php: "7.0"
phpcs_version: "4.0.0"
phpcs_version: "4.0.2"
- php: "7.0"
phpcs_version: "4.x-dev"
- php: "7.1"
phpcs_version: "4.0.0"
phpcs_version: "4.0.2"
- php: "7.1"
phpcs_version: "4.x-dev"

include:
- php: "8.5"
phpcs_version: "4.0.0"
# Exclude builds which are run with code coverage, so as not to duplicate these.
- php: "8.5"
phpcs_version: "3.13.5"

- php: "8.4"
phpcs_version: "4.x-dev"
- php: "8.4"
phpcs_version: "3.13.5"

- php: "8.3"
phpcs_version: "4.x-dev"
- php: "8.3"
phpcs_version: "3.13.5"

- php: "8.2"
phpcs_version: "4.x-dev"
- php: "8.2"
phpcs_version: "3.13.5"

- php: "8.1"
phpcs_version: "4.x-dev"
- php: "8.1"
phpcs_version: "3.13.5"

- php: "8.0"
phpcs_version: "4.x-dev"
- php: "8.0"
phpcs_version: "3.13.5"

- php: "7.4"
phpcs_version: "3.13.6"
- php: "7.2"
phpcs_version: "4.x-dev"

include:
# Experimental builds.
- php: "8.6" # Nightly.
phpcs_version: "4.x-dev"

name: "Test: PHP ${{ matrix.php }} on PHPCS ${{ matrix.phpcs_version }}"

continue-on-error: ${{ matrix.php == '8.6' }}

name: "Test: PHP ${{ matrix.php }} on PHPCS ${{ matrix.phpcs_version }}"

steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand Down Expand Up @@ -172,12 +138,12 @@ jobs:
- php: "8.5"
phpcs_version: "4.x-dev"
- php: "7.4"
phpcs_version: "3.13.5"
phpcs_version: "3.13.6"

- php: "7.2"
phpcs_version: "4.x-dev"
- php: "5.4"
phpcs_version: "3.13.5"
phpcs_version: "3.13.6"

name: "Coverage: PHP ${{ matrix.php }} on PHPCS ${{ matrix.phpcs_version }}"

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ Plugin for PHP_CodeSniffer static analysis tool that adds analysis of problemati

### Requirements

VariableAnalysis requires PHP 5.4 or higher and [PHP CodeSniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer) version 3.13.5 or higher.
VariableAnalysis requires PHP 5.4 or higher and [PHP CodeSniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer) version 3.13.6 or higher.

It also depends on [PHPCSUtils](https://github.com/PHPCSStandards/PHPCSUtils) version 1.0 or higher. If you install VariableAnalysis with Composer (the recommended method below), this dependency is installed for you automatically. If you install it standalone, you must install PHPCSUtils yourself; see the [Standalone](#standalone) instructions.
It also depends on [PHPCSUtils](https://github.com/PHPCSStandards/PHPCSUtils) version 1.2.3 or higher. If you install VariableAnalysis with Composer (the recommended method below), this dependency is installed for you automatically. If you install it standalone, you must install PHPCSUtils yourself; see the [Standalone](#standalone) instructions.

### With PHPCS Composer Installer

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
},
"require": {
"php": ">=5.4.0",
"squizlabs/php_codesniffer": "^3.13.5 || ^4.0.0",
"phpcsstandards/phpcsutils": "^1.0"
"squizlabs/php_codesniffer": "^3.13.6 || ^4.0.2",
"phpcsstandards/phpcsutils": "^1.2.3"
},
"require-dev": {
"phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6.5 || ^7.0 || ^8.0 || ^9.0 || ^10.5.32 || ^11.3.3",
Expand Down