Skip to content

Commit 2133781

Browse files
authored
Upgrade to PHP 8.4+, Laravel 13, and update GitHub Actions versions (#10)
1 parent 07256cb commit 2133781

4 files changed

Lines changed: 17 additions & 17 deletions

File tree

.github/workflows/analyze.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
steps:
1414
- name: Checkout code
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@v6
1616

1717
- name: Setup PHP
1818
uses: shivammathur/setup-php@v2
@@ -21,7 +21,7 @@ jobs:
2121

2222
- name: Cache Composer packages
2323
id: composer-cache
24-
uses: actions/cache@v4
24+
uses: actions/cache@v5
2525
with:
2626
path: vendor
2727
key: ${{ runner.os }}-php-8.4-${{ hashFiles('**/composer.json') }}

.github/workflows/style_fix.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ jobs:
1515
- name: Setup PHP
1616
uses: shivammathur/setup-php@v2
1717
with:
18-
php-version: 8.3
18+
php-version: 8.4
1919

2020
- name: Cache Composer packages
2121
id: composer-cache
22-
uses: actions/cache@v4
22+
uses: actions/cache@v5
2323
with:
2424
path: vendor
25-
key: ${{ runner.os }}-php-8.3-${{ hashFiles('**/composer.json') }}
25+
key: ${{ runner.os }}-php-8.4-${{ hashFiles('**/composer.json') }}
2626
restore-keys: |
27-
${{ runner.os }}-php-8.3-
27+
${{ runner.os }}-php-8.4-
2828
2929
- name: Install dependencies
3030
if: steps.composer-cache.outputs.cache-hit != 'true'
@@ -38,4 +38,4 @@ jobs:
3838
- name: Run style
3939
run: vendor/bin/php-cs-fixer fix --dry-run --diff --format junit
4040

41-
- uses: EndBug/add-and-commit@v9
41+
- uses: EndBug/add-and-commit@v10

.github/workflows/tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ jobs:
1313
strategy:
1414
fail-fast: true
1515
matrix:
16-
php: [8.3, 8.4]
17-
laravel: [11.*, 12.*]
16+
php: [8.4, 8.5]
17+
laravel: [12.*, 13.*]
1818
include:
19-
- laravel: 11.*
20-
testbench: 9.*
2119
- laravel: 12.*
2220
testbench: 10.*
21+
- laravel: 13.*
22+
testbench: 11.*
2323

2424
steps:
2525
- name: Checkout code
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@v6
2727

2828
- name: Setup PHP
2929
uses: shivammathur/setup-php@v2
@@ -41,7 +41,7 @@ jobs:
4141

4242
- name: Cache Composer packages
4343
id: composer-cache
44-
uses: actions/cache@v4
44+
uses: actions/cache@v5
4545
with:
4646
path: vendor
4747
key: ${{ runner.os }}-php-${{ matrix.php }}-laravel-${{ matrix.laravel }}-${{ hashFiles('**/composer.lock') }}

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
}
1111
],
1212
"require": {
13-
"php": "^8.3",
13+
"php": "^8.4",
1414
"giggsey/libphonenumber-for-php": "^8.13",
15-
"laravel/framework": "^11.0|^12.0"
15+
"laravel/framework": "^12.0|^13.0"
1616
},
1717
"require-dev": {
1818
"friendsofphp/php-cs-fixer": "^3.75",
1919
"larastan/larastan": "^3.0",
20-
"orchestra/testbench": "^9.0|^10.0",
20+
"orchestra/testbench": "^10.0|^11.0",
2121
"phpstan/phpstan": "^2.1",
22-
"phpunit/phpunit": "^10.5|^11.5"
22+
"phpunit/phpunit": "^11.5"
2323
},
2424
"autoload": {
2525
"psr-4": {

0 commit comments

Comments
 (0)