-
Notifications
You must be signed in to change notification settings - Fork 0
⚙️ Update workflow file to runs tests on different Laravel and PHP version combinations and 📝 add license #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
03f6898
c58ad8b
e5014f2
d6b57f7
39a0a58
c28db5e
38bf402
29666c7
2355c85
ab4c886
14f7cd5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -2,9 +2,13 @@ name: Tests | |||||||
|
|
||||||||
| on: | ||||||||
| push: | ||||||||
| branches: [main] | ||||||||
| branches: [ master ] | ||||||||
| pull_request: | ||||||||
| branches: [main] | ||||||||
| branches: [ master ] | ||||||||
|
|
||||||||
| concurrency: | ||||||||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||||||||
| cancel-in-progress: true | ||||||||
|
|
||||||||
| jobs: | ||||||||
| test: | ||||||||
|
|
@@ -14,14 +18,48 @@ jobs: | |||||||
| strategy: | ||||||||
| fail-fast: false | ||||||||
| matrix: | ||||||||
| php: ["8.2", "8.3"] | ||||||||
| laravel: ["9.*", "10.*", "11.*", "12.*"] | ||||||||
| exclude: | ||||||||
| # Laravel 11+ requires PHP 8.2+, already satisfied here. | ||||||||
| # Laravel 9 and 10 are compatible with PHP 8.2 and 8.3. | ||||||||
| # No exclusions needed, but keep this block for clarity. | ||||||||
| include: | ||||||||
| # Laravel 8 — testbench ^6.0 supports PHP 7.3–8.1 | ||||||||
| - php: "8.1" | ||||||||
| laravel: "8.*" | ||||||||
| testbench: "^6.0" | ||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Maybe something like this for every insecure version in this matrix and then a conditional step that runs There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oh wait this is exactly what you said. |
||||||||
| allow_insecure: true | ||||||||
| # Laravel 9 — testbench ^7.0 supports PHP 8.0–8.1 | ||||||||
| - php: "8.1" | ||||||||
| laravel: "9.*" | ||||||||
| testbench: "^7.0" | ||||||||
| allow_insecure: true | ||||||||
| # Laravel 10 — testbench ^8.0 supports PHP 8.1–8.3 | ||||||||
| - php: "8.1" | ||||||||
| laravel: "10.*" | ||||||||
| testbench: "^8.0" | ||||||||
| allow_insecure: false | ||||||||
| - php: "8.2" | ||||||||
| laravel: "10.*" | ||||||||
| testbench: "^8.0" | ||||||||
| allow_insecure: false | ||||||||
| - php: "8.3" | ||||||||
| laravel: "10.*" | ||||||||
| testbench: "^8.0" | ||||||||
| allow_insecure: false | ||||||||
| # Laravel 11 — testbench ^9.0 supports PHP 8.2–8.3 | ||||||||
| - php: "8.2" | ||||||||
| laravel: "9.*" # Laravel 9 supports PHP 8.0+, valid combo | ||||||||
| laravel: "11.*" | ||||||||
| testbench: "^9.0" | ||||||||
| allow_insecure: false | ||||||||
| - php: "8.3" | ||||||||
| laravel: "11.*" | ||||||||
| testbench: "^9.0" | ||||||||
| allow_insecure: false | ||||||||
| # Laravel 12 — testbench ^10.0 supports PHP 8.2–8.3 | ||||||||
| - php: "8.2" | ||||||||
| laravel: "12.*" | ||||||||
| testbench: "^10.0" | ||||||||
| allow_insecure: false | ||||||||
| - php: "8.3" | ||||||||
| laravel: "12.*" | ||||||||
| testbench: "^10.0" | ||||||||
| allow_insecure: false | ||||||||
|
|
||||||||
| steps: | ||||||||
| - name: Checkout | ||||||||
|
|
@@ -34,11 +72,16 @@ jobs: | |||||||
| extensions: mbstring, pdo, pdo_sqlite, sqlite3 | ||||||||
| coverage: none | ||||||||
|
|
||||||||
| - name: Allow insecure packages | ||||||||
| if: ${{ matrix.allow_insecure == true }} | ||||||||
| run: composer config audit.block-insecure false | ||||||||
|
|
||||||||
| - name: Install dependencies | ||||||||
| run: | | ||||||||
| composer require "illuminate/support:${{ matrix.laravel }}" \ | ||||||||
| "illuminate/database:${{ matrix.laravel }}" \ | ||||||||
| "illuminate/console:${{ matrix.laravel }}" \ | ||||||||
| "orchestra/testbench:${{ matrix.testbench }}" \ | ||||||||
| --no-update | ||||||||
|
|
||||||||
| composer update --prefer-stable --prefer-dist --no-interaction | ||||||||
|
|
||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| MIT License | ||
|
|
||
| Copyright (c) 2026-present Yoeri Walstra & collaborators | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
Uh oh!
There was an error while loading. Please reload this page.