Skip to content

Commit

Permalink
Laravel 11 compatibility
Browse files Browse the repository at this point in the history
* Upgrade support for PHP >= 8.2
* Upgrade dependencies
* Add github flow
  • Loading branch information
tonyyb authored Mar 22, 2024
1 parent 1804d3e commit e097148
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 7 deletions.
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

0 comments on commit e097148

Please sign in to comment.