Skip to content

Commit 5c74e52

Browse files
Upgrade to Laravel 12 (#97)
1 parent 5c5f3b0 commit 5c74e52

File tree

4 files changed

+40
-7914
lines changed

4 files changed

+40
-7914
lines changed

.github/workflows/php.yml

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,44 @@ name: PHP Composer
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches:
6+
- main
67
pull_request:
7-
branches: [ main ]
8+
branches:
9+
- main
810

911
jobs:
1012
build:
1113
strategy:
1214
matrix:
13-
php: ['7.4', '8.0', '8.1']
15+
php: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
1416
runs-on: ubuntu-latest
1517

1618
steps:
17-
- uses: actions/checkout@v2
18-
19-
- name: Setup PHP
20-
uses: shivammathur/setup-php@v2
21-
with:
22-
php-version: ${{ matrix.php }}
23-
24-
- name: Cache Composer packages
25-
id: composer-cache
26-
uses: actions/cache@v2
27-
with:
28-
path: vendor
29-
key: ${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
30-
restore-keys: |
31-
${{ runner.os }}-php-${{ matrix.php }}-
32-
33-
- name: Remove pint if not PHP 8.1
34-
run: |
35-
if [ '${{ matrix.php }}' != '8.1' ]; then
36-
composer remove laravel/pint --dev
37-
fi
38-
39-
- name: Install dependencies
40-
run: composer install --prefer-dist --no-progress
41-
42-
- name: Run test suite
43-
run: composer run test
19+
- uses: actions/checkout@v4
20+
21+
- name: Setup PHP
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: ${{ matrix.php }}
25+
26+
- name: Cache Composer packages
27+
id: composer-cache
28+
uses: actions/cache@v4
29+
with:
30+
path: vendor
31+
key: "${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}"
32+
restore-keys: |
33+
${{ runner.os }}-php-${{ matrix.php }}-
34+
35+
- name: Remove pint if not PHP 8.1
36+
run: |
37+
if [ '${{ matrix.php }}' != '8.1' ]; then
38+
composer remove laravel/pint --dev
39+
fi
40+
41+
- name: Install dependencies
42+
run: composer install --prefer-dist --no-progress
43+
44+
- name: Run test suite
45+
run: composer run test

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
vendor/
22
.idea
33
.phpunit.result.cache
4-
.php_cs.cache
4+
.php_cs.cache
5+
composer.lock

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
}
1111
],
1212
"require": {
13-
"php": "^7.4|~8.0",
14-
"illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0",
15-
"illuminate/console": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0",
16-
"illuminate/database": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0",
17-
"illuminate/config": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0",
13+
"php": "^7.4|^8.0|^8.1|^8.2|^8.3|^8.4",
14+
"illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0",
15+
"illuminate/console": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0",
16+
"illuminate/database": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0",
17+
"illuminate/config": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0",
1818
"marcj/topsort": "^2.0"
1919
},
2020
"autoload": {
@@ -28,7 +28,7 @@
2828
}
2929
},
3030
"require-dev": {
31-
"orchestra/testbench": "^6.17|^8.0|^9.0",
31+
"orchestra/testbench": "^6.17|^8.0|^9.0|^10.0",
3232
"laravel/pint": "^1.15"
3333
},
3434
"scripts": {

0 commit comments

Comments
 (0)