Skip to content

Commit

Permalink
Add Laravel/Illuminate 11 Support (#461)
Browse files Browse the repository at this point in the history
* Add Laravel 11 Support

* Show Illuminate version in matrix

* Allow dev versions

* Exclude Laravel 11 on PHP 8.1

* Update nicmart/tree to ^0.8
  • Loading branch information
Jubeki authored Feb 15, 2024
1 parent 6b1ae97 commit 807d145
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@ jobs:
matrix:
os: [ubuntu-latest]
php: [8.3, 8.2, 8.1]
illuminate: [10.*, 11.*]
dependency-version: [prefer-lowest, prefer-stable]
exclude:
- php: 8.1
illuminate: 11.*

name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} - I ${{ matrix.illuminate }}

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Puppeteer
run: npm install puppeteer
Expand All @@ -38,7 +42,9 @@ jobs:
coverage: none

- name: Install dependencies
run: composer update --${{ matrix.dependency-version }} --no-interaction --prefer-source
run: |
composer require "laravel/framework:${{ matrix.illuminate }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --no-interaction --prefer-source
- name: Execute tests
run: vendor/bin/pest
11 changes: 5 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
"php": "^8.1",
"guzzlehttp/guzzle": "^7.3",
"guzzlehttp/psr7": "^2.0",
"illuminate/collections": "^10.0",
"nicmart/tree": "^0.3.0",
"illuminate/collections": "^10.0|^11.0",
"nicmart/tree": "^0.8.0",
"spatie/browsershot": "^3.45|^4.0",
"spatie/robots-txt": "^2.0",
"symfony/dom-crawler": "^6.0 | ^7.0"
"symfony/dom-crawler": "^6.0|^7.0"
},
"require-dev": {
"pestphp/pest": "^2.0",
Expand All @@ -46,7 +46,6 @@
"Spatie\\Crawler\\Test\\": "tests"
}
},
"scripts": {
"test": "phpunit"
}
"minimum-stability": "dev",
"prefer-stable": true
}

0 comments on commit 807d145

Please sign in to comment.