Skip to content

Commit a378174

Browse files
authored
Merge pull request #79 from Sammyjo20/upgrade/laravel-11
Feature | Support Laravel 11
2 parents 0efbd2f + cad9bef commit a378174

File tree

2 files changed

+24
-16
lines changed

2 files changed

+24
-16
lines changed

.github/workflows/tests.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,26 @@ permissions:
1212
contents: write
1313

1414
jobs:
15-
tests:
15+
test:
1616
runs-on: ${{ matrix.os }}
17+
1718
strategy:
1819
fail-fast: true
1920
matrix:
20-
os: [ ubuntu-latest, windows-latest ]
21-
php: [ 8.1, 8.2, 8.3 ]
22-
stability: [ prefer-lowest, prefer-stable ]
23-
24-
name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}
21+
os: [ubuntu-latest, windows-latest]
22+
php: [8.1, 8.2, 8.3]
23+
laravel: ['10.*', '11.*']
24+
stability: [prefer-lowest, prefer-stable]
25+
include:
26+
- laravel: 10.*
27+
testbench: 8.*
28+
- laravel: 11.*
29+
testbench: 9.*
30+
exclude:
31+
- laravel: 11.*
32+
php: 8.1
33+
34+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2535

2636
steps:
2737
- name: Checkout code
@@ -34,18 +44,16 @@ jobs:
3444
extensions: mbstring, zip, fileinfo
3545
coverage: none
3646

37-
- name: Install Node Dependencies
38-
run: |
39-
npm install
40-
4147
- name: Setup problem matchers
4248
run: |
4349
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
4450
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
4551
4652
- name: Install dependencies
4753
run: |
54+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
4855
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
56+
npm install
4957
5058
- name: Execute tests
5159
run: ./vendor/bin/pest

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
"php": "^8.1",
1515
"ext-json": "*",
1616
"ext-zip": "*",
17-
"illuminate/console": "^9.0 || ^10.0",
18-
"illuminate/filesystem": "^9.0 || ^10.0",
19-
"illuminate/support": "^9.0 || ^10.0",
20-
"symfony/finder": "^6.0",
21-
"symfony/process": "^6.0",
17+
"illuminate/console": "^10.0 || ^11.0",
18+
"illuminate/filesystem": "^10.0 || ^11.0",
19+
"illuminate/support": "^10.0 || ^11.0",
20+
"symfony/finder": "^6.0 || ^7.0",
21+
"symfony/process": "^6.0 || ^7.0",
2222
"league/flysystem": "^3.0"
2323
},
2424
"require-dev": {
25-
"orchestra/testbench": "^7.0 || ^8.0",
25+
"orchestra/testbench": "^8.0 || ^9.0",
2626
"friendsofphp/php-cs-fixer": "^3.1.0",
2727
"spatie/ray": "^1.33",
2828
"pestphp/pest": "^2.25",

0 commit comments

Comments
 (0)