Skip to content

Commit fe986d1

Browse files
committed
[UPDATE] Laravel 11.x Compatibility
1 parent c6cf3b9 commit fe986d1

File tree

4 files changed

+1473
-1162
lines changed

4 files changed

+1473
-1162
lines changed

.github/workflows/pest.yml

Lines changed: 59 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,64 @@
11
name: Tests
22

33
on:
4-
push:
5-
paths:
6-
- '**.php'
7-
- 'phpunit.xml.dist'
8-
- '.github/workflows/pest.yml'
9-
- 'composer.json'
10-
pull_request:
11-
branches: [master]
4+
push:
5+
paths:
6+
- '**.php'
7+
- 'phpunit.xml.dist'
8+
- '.github/workflows/pest.yml'
9+
- 'composer.json'
10+
pull_request:
11+
branches: [master]
1212

1313
jobs:
14-
test:
15-
runs-on: ubuntu-latest
16-
strategy:
17-
fail-fast: true
18-
matrix:
19-
php: [8.2, 8.1]
20-
laravel: [10.*]
21-
stability: [prefer-lowest, prefer-stable]
22-
include:
23-
- laravel: 10.*
24-
testbench: 8.*
25-
filament: ^3.2.6
26-
27-
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }}
28-
29-
steps:
30-
- name: Checkout code
31-
uses: actions/checkout@v4
32-
33-
- name: Setup PHP
34-
uses: shivammathur/setup-php@v2
35-
with:
36-
php-version: ${{ matrix.php }}
37-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
38-
coverage: none
39-
40-
- name: Setup problem matchers
41-
run: |
42-
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
43-
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
44-
45-
- name: Install dependencies
46-
run: |
47-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "filament/filament:${{ matrix.filament }}" --no-interaction --no-update
48-
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
49-
50-
- name: List Installed Dependencies
51-
run: composer show -D
52-
53-
- name: Execute tests
54-
run: vendor/bin/pest --ci
14+
test:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
fail-fast: true
18+
matrix:
19+
php: [8.2, 8.1]
20+
laravel: ['10.*', '11.*']
21+
stability: [prefer-stable]
22+
include:
23+
- laravel: 10.*
24+
testbench: ^8.0
25+
filament: ^3.2.6
26+
- laravel: 11.*
27+
testbench: ^9.0
28+
filament: ^3.2.58
29+
exclude:
30+
- laravel: 10.*
31+
php: 8.0
32+
- laravel: 11.*
33+
php: 8.1
34+
- laravel: 11.*
35+
php: 8.0
36+
37+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }}
38+
39+
steps:
40+
- name: Checkout code
41+
uses: actions/checkout@v4
42+
43+
- name: Setup PHP
44+
uses: shivammathur/setup-php@v2
45+
with:
46+
php-version: ${{ matrix.php }}
47+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
48+
coverage: none
49+
50+
- name: Setup problem matchers
51+
run: |
52+
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
53+
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
54+
55+
- name: Install dependencies
56+
run: |
57+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "filament/filament:${{ matrix.filament }}" --no-interaction --no-update
58+
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
59+
60+
- name: List Installed Dependencies
61+
run: composer show -D
62+
63+
- name: Execute tests
64+
run: vendor/bin/pest --ci
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: "Update Changelog"
22

33
on:
4-
release:
5-
types: [released]
4+
release:
5+
types:
6+
- published
67

78
permissions:
89
contents: write
@@ -15,17 +16,17 @@ jobs:
1516
- name: Checkout code
1617
uses: actions/checkout@v4
1718
with:
18-
ref: master
19+
ref: master
1920

2021
- name: Update Changelog
2122
uses: stefanzweifel/changelog-updater-action@v1
2223
with:
23-
latest-version: ${{ github.event.release.name }}
24-
release-notes: ${{ github.event.release.body }}
24+
latest-version: ${{ github.event.release.name }}
25+
release-notes: ${{ github.event.release.body }}
2526

2627
- name: Commit updated CHANGELOG
2728
uses: stefanzweifel/git-auto-commit-action@v5
2829
with:
29-
branch: master
30-
commit_message: [UPDATE] CHANGELOG
31-
file_pattern: CHANGELOG.md
30+
branch: master
31+
commit_message: [UPDATE] CHANGELOG
32+
file_pattern: CHANGELOG.md

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
"php": "^8.1",
2626
"filament/forms": "^3.0",
2727
"spatie/laravel-package-tools": "^1.15.0",
28-
"illuminate/contracts": "^10.0"
28+
"illuminate/contracts": "^10.0|^11.0"
2929
},
3030
"require-dev": {
3131
"laravel/pint": "^1.0",
32-
"nunomaduro/collision": "^7.9",
32+
"nunomaduro/collision": "^7.0|^8.0",
3333
"larastan/larastan": "^2.6",
34-
"orchestra/testbench": "^v8.9.1",
34+
"orchestra/testbench": "^v8.9.1|^v9.0.0",
3535
"pestphp/pest": "^v2.24.3",
3636
"phpunit/phpunit": "^10",
3737
"pestphp/pest-plugin-laravel": "^2.2",

0 commit comments

Comments
 (0)