Skip to content

Commit

Permalink
Adds PHP 8.4 testing on GitHub Actions. Minimum PHP version now set t…
Browse files Browse the repository at this point in the history
…o 8.2.
  • Loading branch information
elliotjreed committed Dec 15, 2024
1 parent 7cb57e9 commit 32b4d22
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 24 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
fail-fast: false
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1', '8.2', '8.3']
php-versions: ['8.2', '8.3', '8.4']
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
Expand All @@ -20,20 +20,6 @@ jobs:
coverage: xdebug
tools: cs2pr

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache composer dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install Composer dependencies
run: composer install --no-interaction --classmap-authoritative --no-progress

- name: Run PHP Code Sniffer and PHP CS Fixer (dry run)
run: PHP_CS_FIXER_IGNORE_ENV=1 composer run-script phpcs:ci

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Towards the bottom of this readme is a list of some of the event codes and their

## Usage

PHP 8.1 or above is required.
PHP 8.2 or above is required. For PHP 8.1 use version 4.2.0.

To install the package via [Composer](https://getcomposer.org/download/):

Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@
}
},
"require": {
"php": "^8.1",
"php": "^8.2",
"ext-json": "*",
"guzzlehttp/guzzle": "^6.0|^7.0",
"symfony/property-access": "^5.0|^6.0|^7.0",
"symfony/serializer": "^5.0|^6.0|^7.0"
"symfony/property-access": "^6.0|^7.0",
"symfony/serializer": "^6.0|^7.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.62",
"phpunit/phpunit": "^10.5|^11.3",
"friendsofphp/php-cs-fixer": "*",
"phpunit/phpunit": "^11.5",
"roave/security-advisories": "dev-master",
"squizlabs/php_codesniffer": "^3.10"
"squizlabs/php_codesniffer": "*"
},
"scripts": {
"test": [
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" colors="true" xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" cacheDirectory=".phpunit.cache">
<coverage/>
<testsuites>
<testsuite name="all">
Expand Down

0 comments on commit 32b4d22

Please sign in to comment.