Skip to content

Commit d798a99

Browse files
authored
Merge pull request #16 from saloonphp/feature/php-8.5
Feature | PHP 8.5 Support
2 parents 48cdf8d + e9d5feb commit d798a99

4 files changed

Lines changed: 29 additions & 17 deletions

File tree

.github/workflows/php-cs-fixer.yml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,30 @@ on:
1212
permissions:
1313
contents: write
1414

15+
concurrency:
16+
group: ${{ github.head_ref || github.ref || github.run_id }}_php_cs_fixer
17+
cancel-in-progress: true
18+
1519
jobs:
16-
php-cs-fixer:
20+
lint:
1721
runs-on: ubuntu-latest
18-
1922
steps:
20-
- name: Checkout code
21-
uses: actions/checkout@v3
22-
- name: Run PHP CS Fixer
23-
uses: docker://oskarstark/php-cs-fixer-ga
23+
- uses: actions/checkout@v4
24+
25+
- name: Setup PHP
26+
uses: shivammathur/setup-php@v2
2427
with:
25-
args: --config=.php-cs-fixer.dist.php --allow-risky=yes
26-
- name: Commit changes
27-
uses: stefanzweifel/git-auto-commit-action@v4
28+
php-version: '8.2'
29+
30+
- name: Install Dependencies
31+
run: |
32+
composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
33+
34+
- name: Run PHP CS Fixer
35+
run: ./vendor/bin/php-cs-fixer fix --allow-risky=yes
36+
37+
- name: Commit Changes
38+
uses: stefanzweifel/git-auto-commit-action@v5
2839
with:
2940
commit_message: 🪄 Code Style Fixes
41+
commit_options: '--no-verify'

.github/workflows/phpstan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
name: phpstan
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v6
1818

1919
- name: Setup PHP
2020
uses: shivammathur/setup-php@v2
2121
with:
22-
php-version: '8.1'
22+
php-version: '8.5'
2323
coverage: none
2424

2525
- name: Install composer dependencies

.github/workflows/tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ jobs:
1919
fail-fast: true
2020
matrix:
2121
os: [ ubuntu-latest, windows-latest ]
22-
php: [ 8.1, 8.2, 8.3 ]
22+
php: [ 8.2, 8.3, 8.4, 8.5 ]
2323
stability: [ prefer-lowest, prefer-stable ]
2424

2525
name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}
2626

2727
steps:
2828
- name: Checkout code
29-
uses: actions/checkout@v3
29+
uses: actions/checkout@v6
3030

3131
- name: Setup PHP
3232
uses: shivammathur/setup-php@v2
@@ -43,5 +43,6 @@ jobs:
4343
- name: Install dependencies
4444
run: |
4545
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
46+
4647
- name: Execute tests
4748
run: vendor/bin/pest

composer.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,14 @@
1212
],
1313
"homepage": "https://github.com/saloonphp/pagination-plugin",
1414
"require": {
15-
"php": "^8.1",
15+
"php": "^8.2",
1616
"saloonphp/saloon": "^3.0"
1717
},
1818
"require-dev": {
1919
"friendsofphp/php-cs-fixer": "^3.5",
20-
"pestphp/pest": "^2.6",
20+
"pestphp/pest": "^3.0 || ^4.0",
2121
"phpstan/phpstan": "^1.9",
22-
"spatie/ray": "^1.33",
23-
"illuminate/collections": "^10.9",
22+
"illuminate/collections": "^11.0 || ^12.0",
2423
"spatie/invade": "^2.0"
2524
},
2625
"minimum-stability": "stable",

0 commit comments

Comments
 (0)