Skip to content

Update PHPCS and PHP versions in unit tests#3

Merged
yCodeTech merged 4 commits intomasterfrom
fix/update-unit-tests-phpcs-version
Mar 26, 2026
Merged

Update PHPCS and PHP versions in unit tests#3
yCodeTech merged 4 commits intomasterfrom
fix/update-unit-tests-phpcs-version

Conversation

@yCodeTech
Copy link
Copy Markdown
Owner

@yCodeTech yCodeTech commented Mar 26, 2026

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:

  • Expanded PHP version support:
    • Added PHP 8.5 to the test matrix to ensure future compatibility.
    • Included a job to test PHP 8.5 with PHPCS 4.x-dev for early detection of compatibility issues.
  • Expanded PHPCS version support:
    • Added 3.x-dev to the PHPCS versions that are tested.
  • Fix branch naming
    • Updated the job that previously used dev-master for PHPCS to use 3.x-dev, aligning with current PHPCS branch naming. This fixes job failure that used dev-master when the master branch was renamed to 3.x.
  • Workflow trigger improvements:
    • Modified the pull_request trigger in .github/workflows/unit-tests.yml to ignore changes to unit test workflow files themselves, preventing redundant workflow runs when only those files are changed.

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.
@yCodeTech yCodeTech merged commit aa6178d into master Mar 26, 2026
@yCodeTech yCodeTech deleted the fix/update-unit-tests-phpcs-version branch March 26, 2026 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant