Skip to content

Commit

Permalink
Add Laravel 11 Support (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
matriphe authored Mar 17, 2024
1 parent df0c2ae commit ad535a1
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 14 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,32 @@ on:

jobs:
version-latest:
name: Latest version Laravel ${{ matrix.laravel-versions }} PHP ${{ matrix.php-versions }} ${{ matrix.operating-system }}
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ ubuntu-latest ]
php-versions: [ '8.2', '8.3' ]
laravel-versions: [ '^11.0' ]
steps:
- uses: matriphe/laravel-pkg-test-action@v2
with:
operating_system: ${{ matrix.operating-system }}
php_version: ${{ matrix.php-versions }}
laravel_version: ${{ matrix.laravel-versions }}
phpunit_args: --group unit
laravel_install_args: --prefer-dist --no-progress --no-suggest --optimize-autoloader --no-plugins
package_install_args: --prefer-dist --no-progress --no-suggest --optimize-autoloader --no-plugins

- name: Run Ubuntu Tests
run: vendor/bin/phpunit --group ubuntu

- name: Run Larinfo Command
run: php vendor/bin/testbench larinfo


version-4-1:
name: Latest version Laravel ${{ matrix.laravel-versions }} PHP ${{ matrix.php-versions }} ${{ matrix.operating-system }}
runs-on: ${{ matrix.operating-system }}
strategy:
Expand All @@ -25,6 +51,7 @@ jobs:
phpunit_args: --group unit
laravel_install_args: --prefer-dist --no-progress --no-suggest --optimize-autoloader --no-plugins
package_install_args: --prefer-dist --no-progress --no-suggest --optimize-autoloader --no-plugins
branch: 4.1.0

- name: Run Ubuntu Tests
run: vendor/bin/phpunit --group ubuntu
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ on:


jobs:
ubuntu-laravel-10:
ubuntu-laravel-11:
name: Laravel ${{ matrix.laravel-versions }} PHP ${{ matrix.php-versions }} ${{ matrix.operating-system }}
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ ubuntu-20.04, ubuntu-22.04 ]
php-versions: [ '8.1', '8.2', '8.3' ]
laravel-versions: [ '^10.0' ]
php-versions: [ '8.2', '8.3' ]
laravel-versions: [ '11.*' ]
steps:
- uses: matriphe/laravel-pkg-test-action@v2
with:
Expand All @@ -35,15 +35,15 @@ jobs:
run: php vendor/bin/testbench larinfo


macos-laravel-10:
macos-laravel-11:
name: Laravel ${{ matrix.laravel-versions }} PHP ${{ matrix.php-versions }} ${{ matrix.operating-system }}
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ macos-12, macos-13 ]
php-versions: [ '8.1', '8.2', '8.3' ]
laravel-versions: [ '^10.0' ]
php-versions: [ '8.2', '8.3' ]
laravel-versions: [ '11.*' ]
steps:
- uses: matriphe/laravel-pkg-test-action@v2
with:
Expand All @@ -61,15 +61,15 @@ jobs:
run: php vendor/bin/testbench larinfo


windows-laravel-10:
windows-laravel-11:
name: Laravel ${{ matrix.laravel-versions }} PHP ${{ matrix.php-versions }} ${{ matrix.operating-system }} without com_dotnet
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ windows-2019, windows-2022 ]
php-versions: [ '8.1', '8.2', '8.3' ]
laravel-versions: [ '^10.0' ]
php-versions: [ '8.2', '8.3' ]
laravel-versions: [ '11.*' ]
php-extension: [ 'pdo_sqlite,sqlite3,fileinfo' , 'pdo_sqlite,sqlite3,fileinfo,com_dotnet']
steps:
- uses: matriphe/laravel-pkg-test-action@v2
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ It wraps [Linfo](https://github.com/jrgp/linfo) to show IP address information o

## Requirements

- **PHP version**: `^8.1`.
- **Laravel version**: `^10.0`.
- **PHP version**: `^8.2`.
- **Laravel version**: `^11.0`.

### For Windows User

Expand All @@ -34,6 +34,7 @@ composer require matriphe/larinfo
- Laravel `5.0`, `5.1`, `5.2`, `5.3`, `5.4`, `5.5`, and `5.6`, **[please use version 2.2](https://github.com/matriphe/larinfo/releases/tag/2.2)** by running `composer require matriphe/larinfo:2.2`.
- Laravel `5.7.*`, `5.8.*`, `^6.0`, `^7.0`, and `^8.0`, **[please use version 3.0.0](https://github.com/matriphe/larinfo/releases/tag/3.0.0)** by running `composer require matriphe/larinfo:3.0.0`.
- Laravel `^9.0` **[please use version 4.0.0](https://github.com/matriphe/larinfo/releases/tag/4.0.0)** by running `composer require matriphe/larinfo:4.0.0`.
- Laravel `^10.0` **[please use version 4.1.0](https://github.com/matriphe/larinfo/releases/tag/4.1.0)** by running `composer require matriphe/larinfo:4.1.0`.

### Configuration

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"sysinfo"
],
"require": {
"php": "^8.1",
"php": "^8.2",
"ext-pdo": "*",
"davidepastore/ipinfo": "^0.6",
"laravel/framework": "^10.0",
"laravel/framework": "^11.0",
"linfo/linfo": "^4.0"
},
"require-dev": {
"mockery/mockery": "^1.0",
"orchestra/testbench": "^8.0"
"orchestra/testbench": "^9.0"
},
"license": "MIT",
"authors": [
Expand Down

0 comments on commit ad535a1

Please sign in to comment.