Skip to content

Commit 2db308f

Browse files
committed
Run CI on PHP 8.5
1 parent 120d014 commit 2db308f

File tree

5 files changed

+323
-200
lines changed

5 files changed

+323
-200
lines changed

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Editor configuration, see https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 4
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false
14+
15+
[*.yml]
16+
indent_size = 2

.gitattributes

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1-
/.github/ export-ignore
2-
/tests/ export-ignore
1+
tests/ export-ignore
2+
.github/ export-ignore
3+
.gitattributes export-ignore
4+
.gitignore export-ignore
5+
.php-cs-fixer.php export-ignore
6+
composer.lock export-ignore
7+
phpstan.neon export-ignore

.github/workflows/php.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ jobs:
77

88
strategy:
99
matrix:
10-
php: [ '8.2', '8.3', '8.4' ]
10+
php: [ '8.2', '8.3', '8.4', '8.5' ]
1111

1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v6
1515

1616
# Docs: https://github.com/shivammathur/setup-php
1717
- name: Setup PHP
@@ -26,15 +26,15 @@ jobs:
2626
run: composer validate --strict
2727

2828
- name: Install Composer dependencies
29-
run: composer install --no-progress
29+
uses: "ramsey/composer-install@v3"
3030

3131
- name: Run PHPUnit
3232
run: composer test
3333

3434
- name: Perform static analysis
3535
run: composer analyze -- --error-format=github
36-
if: ${{ matrix.php == '8.4' }}
36+
if: ${{ matrix.php == '8.5' }}
3737

3838
- name: Check Formatting
39-
run: vendor/bin/php-cs-fixer fix -v --dry-run --stop-on-violation --using-cache=no
40-
if: ${{ matrix.php == '8.4' }}
39+
run: vendor/bin/php-cs-fixer check -v --show-progress=dots --stop-on-violation --using-cache=no
40+
if: ${{ matrix.php == '8.5' }}

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
"php": ">=8.2"
2121
},
2222
"require-dev": {
23-
"friendsofphp/php-cs-fixer": "^3.86",
23+
"friendsofphp/php-cs-fixer": "^3.92",
2424
"ircmaxell/php-yacc": "dev-master",
2525
"jbboehr/handlebars-spec": "dev-master",
26-
"phpstan/phpstan": "^2.1.22",
26+
"phpstan/phpstan": "^2.1.33",
2727
"phpunit/phpunit": "^11.5"
2828
},
2929
"autoload": {

0 commit comments

Comments
 (0)