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.x Compatibility #7

Merged
merged 10 commits into from
Feb 28, 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
22 changes: 11 additions & 11 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@ name: CI

on:
push:
branches: [ main ]
branches:
- main
pull_request:
branches: [ main ]
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [8.0, 8.1, 8.2]
laravel: [8.*, 9.*, 10.*]
php: [8.1, 8.2, 8.3]
laravel: ['10.*', '11.*']
include:
- laravel: 8.*
- laravel: 9.*
- laravel: 10.*
- laravel: 11.*
exclude:
- php: 8.0
laravel: 10.*
- php: 8.2
laravel: 8.*
- laravel: 11.*
php: 8.1

name: P${{ matrix.php }} - L${{ matrix.laravel }}

Expand All @@ -41,7 +41,7 @@ jobs:
composer update --prefer-dist --no-interaction

- name: Run PHPUnit
uses: php-actions/phpunit@v9
uses: php-actions/phpunit@v3
with:
configuration: ./phpunit.xml
memory_limit: 256M
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/.idea
/vendor
composer.lock
.phpunit.result.cache
/.phpunit.cache
10 changes: 6 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"description": "A domain validator rule for Laravel",
"type": "library",
"require": {
"php": "^8.0",
"illuminate/validation": "^8|^9|^10"
"php": "^8.1",
"illuminate/validation": "^10.0|^11.0"
},
"require-dev": {
"phpunit/phpunit": "^9.3"
"phpunit/phpunit": "^10.0"
},
"autoload": {
"psr-4": {
Expand All @@ -20,5 +20,7 @@
"name": "David Cortés",
"email": "[email protected]"
}
]
],
"minimum-stability": "dev",
"prefer-stable": true
}
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
![GitHub](https://img.shields.io/github/license/dacoto/laravel-domain-validation)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/dacoto/laravel-domain-validation)

A domain validator rule for Laravel 8.x and higher.
A domain validator rule for Laravel 10.x and higher.

## Usage

Expand Down
2 changes: 1 addition & 1 deletion tests/DomainTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* Class DomainTest
*/
class DomainTest extends TestCase
final class DomainTest extends TestCase
{
/** @var Domain */
private $validator;
Expand Down
Loading