Skip to content
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

Laravel 11 compatibility #10

Merged
merged 2 commits into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Novius CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
lint-php:

runs-on: ubuntu-latest

steps:
- uses: shivammathur/setup-php@v2
with:
php-version: '8.2'

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

- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist

- name: Lint PHP code via Laravel Pint
run: composer run-script lint

test-app:
runs-on: ubuntu-latest

steps:
- uses: shivammathur/setup-php@v2
with:
php-version: '8.2'

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

- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist

- name: Run tests
run: composer test
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ This package contains some useful Artisan commands.

## Requirements

This version is compatible with Laravel 10 and PHP >= 8.1.
This version is compatible with Laravel 11 and PHP >= 8.2.

For Laravel 10.0 please use 4.* version.

For Laravel >= 7.0 and < 10.0 please use 3.* version.

Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
}
],
"require": {
"php": "^8.1",
"laravel/framework": "~10.0"
"php": "^8.2",
"laravel/framework": "~11.0"
},
"require-dev": {
"laravel/pint": "^1.0",
"phpunit/phpunit": "^10.0",
"orchestra/testbench": "^8.0"
"laravel/pint": "^v1.14",
"phpunit/phpunit": "^11.0",
"orchestra/testbench": "^v9.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/Console/Database/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function handle()
/**
* Dynamicaly change "database" key into database config, and rebound "db".
*
* @param $databaseName string
* @param $databaseName string
* @return void
*/
protected function changeDatabaseName(string $databaseName)
Expand Down
Loading