Update GitHub workflows #18
Merged
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 project's PHP version support and modernizes the CI workflows. The changes ensure compatibility with newer PHP versions (up to 8.2) and improve caching and setup steps in GitHub Actions, making the CI process more robust and future-proof.
PHP Version Support:
composer.jsonto include PHP 8.1 and 8.2, allowing the library to be used and tested on the latest PHP releases.Continuous Integration Workflow Improvements:
Test Matrix and Setup:
.github/workflows/run-tests.ymland.github/workflows/psalm.ymlto run against PHP 7.4, 8.0, 8.1, and 8.2, ensuring all supported versions are tested. [1] [2]Actions and Caching:
actions/checkoutandactions/cacheto version 4 in both workflows for improved performance and security. [1] [2]restore-keysfor better cache hit rates. [1] [2]Tooling Configuration:
.php-cs-fixer.cacheto reflect the latest PHP version and code style rules, aligning with the new PHP 8.2 support.