Skip to content

Commit

Permalink
Merge pull request #66 from ruudk/php82
Browse files Browse the repository at this point in the history
Run PHP 8.2 on CI
  • Loading branch information
mcg-web authored Aug 25, 2023
2 parents ab4fd58 + fb20e47 commit 6d3a5a1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
php-version:
- "8.0"
- "8.1"
- "8.2"
dependencies:
- "lowest"
- "highest"
Expand All @@ -35,7 +36,7 @@ jobs:
ini-values: "zend.assertions=1"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v1"
uses: "ramsey/composer-install@v2"
with:
dependency-versions: "${{ matrix.dependencies }}"

Expand Down Expand Up @@ -77,7 +78,7 @@ jobs:
strategy:
matrix:
php-version:
- "8.0"
- "8.2"

steps:
- name: "Checkout"
Expand All @@ -91,10 +92,10 @@ jobs:
tools: "cs2pr"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v1"
uses: "ramsey/composer-install@v2"

- name: "Install php-cs-fixer"
run: composer require "friendsofphp/php-cs-fixer:^2.16"
run: composer require "friendsofphp/php-cs-fixer:^3.23"

- name: "Run php-cs-fixer"
run: "vendor/bin/php-cs-fixer fix --diff --dry-run -v"
4 changes: 2 additions & 2 deletions .php_cs → .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
file that was distributed with this source code.
EOF;

return PhpCsFixer\Config::create()
->setRules([
return (new PhpCsFixer\Config())
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'no_unreachable_default_argument_value' => false,
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
},
"require-dev": {
"guzzlehttp/promises": "^1.5.0 || ^2.0.0",
"phpunit/phpunit": "^9.5.10",
"phpunit/php-code-coverage": "^9.2.27",
"phpunit/phpunit": "^9.6.11",
"react/promise": "^2.8.0",
"webonyx/graphql-php": "^14.0"
},
Expand Down

0 comments on commit 6d3a5a1

Please sign in to comment.