Skip to content

Commit

Permalink
Support Laravel 11 (#6)
Browse files Browse the repository at this point in the history
* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

---------

Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone authored Mar 7, 2024
1 parent 0c6cc76 commit 7ea4f7d
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 14 deletions.
58 changes: 48 additions & 10 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,52 @@ on:
workflow_dispatch:

jobs:
tests-on-laravel-11:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
os:
- "ubuntu-latest"
php:
- 8.2
- 8.3
dependencies:
- "highest"
laravel:
- "11.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=laravel/framework:${{ matrix.laravel }}"

- name: Installed dependencies
run: composer show -D

- name: Execute tests
run: vendor/bin/phpunit --testdox

tests-on-laravel-10:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
Expand Down Expand Up @@ -41,15 +87,11 @@ jobs:
run: |
composer config http-basic.nova.laravel.com ${{ secrets.NOVA_USERNAME }} ${{ secrets.NOVA_PASSWORD }}
- name: Install Laravel Framework ${{ matrix.laravel }}
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
- name: Install dependencies
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--prefer-dist --no-cache"
composer-options: "--prefer-dist --no-cache --with=laravel/framework:${{ matrix.laravel }}"

- name: Installed dependencies
run: composer show -D
Expand Down Expand Up @@ -92,15 +134,11 @@ jobs:
run: |
composer config http-basic.nova.laravel.com ${{ secrets.NOVA_USERNAME }} ${{ secrets.NOVA_PASSWORD }}
- name: Install Laravel Framework ${{ matrix.laravel }}
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
- name: Install dependencies
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "--prefer-dist --no-cache"
composer-options: "--prefer-dist --no-cache --with=laravel/framework:${{ matrix.laravel }}"

- name: Installed dependencies
run: composer show -D
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@
"require": {
"php": "^7.3 || ^8.0",
"composer-runtime-api": "^2.2",
"illuminate/support": "^8.83.4 || ^9.51 || ^10.0",
"illuminate/support": "^8.83.4 || ^9.51 || ^10.0 || ^11.0",
"laravie/serialize-queries": "^2.0 || ^3.0",
"laravel/serializable-closure": "^1.0"
},
"require-dev": {
"guzzlehttp/guzzle": "^7.2",
"larastan/larastan": "^2.4",
"laravel/nova": "^4.14",
"orchestra/testbench": "^7.30 || ^8.10",
"phpunit/phpunit": "^9.6",
"laravel/nova": "*",
"orchestra/testbench": "^7.30 || ^8.19 || ^9.0",
"phpunit/phpunit": "^9.6 || ^10.1",
"nova-kit/nova-devtool": "^1.2.1"
},
"repositories": [
Expand Down

0 comments on commit 7ea4f7d

Please sign in to comment.