Skip to content

Commit

Permalink
Supports Laravel 12 (#6)
Browse files Browse the repository at this point in the history
* Supports Laravel 12

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>

* wip

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>

* wip

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>

* wip

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>

---------

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone authored Feb 21, 2025
1 parent d14ac54 commit 0405fd1
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/audit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
php:
- 8.2
- 8.3
- 8.4
experimental:
- true

Expand Down
53 changes: 51 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,54 @@ on:
workflow_dispatch:

jobs:
tests-on-laravel-12:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
os:
- "ubuntu-latest"
- "windows-latest"
php:
- 8.2
- 8.3
- 8.4
dependencies:
- "highest"
laravel:
- "12.x"
experimental:
- false

name: Laravel:${{ matrix.laravel }} on PHP:${{ matrix.php }}-${{ matrix.os }} (${{ matrix.dependencies }})

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, sqlite3, pdo_sqlite, bcmath, fileinfo
coverage: none

- name: "Setup CI Authentication"
run: |
composer config http-basic.nova.laravel.com ${{ secrets.NOVA_USERNAME }} ${{ secrets.NOVA_PASSWORD }}
- name: Install dependencies
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--prefer-dist --no-cache --with=illuminate/support:${{ matrix.laravel }}"

- name: Installed dependencies
run: composer show -D

- name: Execute tests
run: composer run test

tests-on-laravel-11:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
Expand All @@ -17,6 +65,7 @@ jobs:
php:
- 8.2
- 8.3
- 8.4
dependencies:
- "highest"
laravel:
Expand Down Expand Up @@ -45,7 +94,7 @@ jobs:
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--prefer-dist --no-cache --with=laravel/framework:${{ matrix.laravel }}"
composer-options: "--prefer-dist --no-cache --with=illuminate/support:${{ matrix.laravel }}"

- name: Installed dependencies
run: composer show -D
Expand Down Expand Up @@ -93,7 +142,7 @@ jobs:
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--prefer-dist --no-cache --with=laravel/framework:${{ matrix.laravel }}"
composer-options: "--prefer-dist --no-cache --with=illuminate/support:${{ matrix.laravel }}"

- name: Installed dependencies
run: composer show -D
Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,22 @@
"require": {
"php": "^8.1",
"composer-runtime-api": "^2.2",
"illuminate/support": "^10.48.23|^11.35",
"illuminate/support": "^10.48.23|^11.35|^12.0",
"laravel/vapor-core": "^2.37",
"nova-kit/nova-queued-export-as-csv": "^2.1",
"symfony/polyfill-php83": "^1.31"
},
"require-dev": {
"laravel/nova": "^5.0",
"laravel/nova-devtool": "^1.1",
"laravel/pint": "^1.17",
"laravel/nova": "^5.2",
"laravel/nova-devtool": "^1.6",
"laravel/pint": "^1.20",
"league/flysystem-aws-s3-v3": "^1.0|^3.0",
"orchestra/testbench": "^8.21|^9.0",
"orchestra/pest-plugin-testbench": "^2.0",
"phpstan/phpstan": "^2.0"
"orchestra/testbench": "^8.21|^9.0|^10.0",
"orchestra/pest-plugin-testbench": "^2.0|^3.0",
"phpstan/phpstan": "^2.1"
},
"conflict": {
"laravel/nova": "<5.0.0|>=6.0.0"
"laravel/nova": "<5.2.0|>=6.0.0"
},
"repositories": [
{ "type": "composer", "url": "https://nova.laravel.com" }
Expand Down

0 comments on commit 0405fd1

Please sign in to comment.