Update PHPCS and PHP versions in unit tests#3
Merged
Conversation
This change is required because `master` is no longer a viable branch name, and therefore composer errors out in the workflow as it can't find branch `master` since it doesn't exist. Fixes the workflow run: https://github.com/yCodeTech/phpcs-standard/actions/runs/23579857114/job/68660241856 - Replaced the obsolete `dev-master` with `3.x-dev`.
- Added `paths-ignore` filter on the `pull_request` event to exclude unit test workflow changes as they are skipped anyway.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates the PHP and PHPCS version matrix in the GitHub Actions workflow for unit tests. The main goal is to ensure compatibility with the latest PHP and PHPCS versions and to improve test coverage for development versions.
Updates to test matrix:
4.x-devfor early detection of compatibility issues.3.x-devto the PHPCS versions that are tested.dev-masterfor PHPCS to use3.x-dev, aligning with current PHPCS branch naming. This fixes job failure that useddev-masterwhen themasterbranch was renamed to3.x.pull_requesttrigger in.github/workflows/unit-tests.ymlto ignore changes to unit test workflow files themselves, preventing redundant workflow runs when only those files are changed.