Skip to content
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
26 changes: 12 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,37 +8,35 @@ jobs:

strategy:
matrix:
php: ['8.0', 8.1, 8.2]
laravel: [11, 10, 9]
include:
- { laravel: 11, phpunit: 11 }
- { laravel: 10, phpunit: 10 }
- { laravel: 9, phpunit: 9 }
php: [8.2, 8.3, 8.4]
lib:
- laravel: ^13.0.x-dev
- laravel: ^12.0
- laravel: ^11.0
exclude:
- { php: 8.0, laravel: 10 }
- { php: 8.0, laravel: 11 }
- { php: 8.1, laravel: 11 }
- php: 8.2
lib:
laravel: ^13.0.x-dev

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug

- run: composer require "laravel/framework:^${{ matrix.laravel }}" --dev
- run: composer require "phpunit/phpunit:^${{ matrix.phpunit }}" --dev
- run: composer require "laravel/framework:${{ matrix.lib.laravel }}" --dev
- run: mkdir -p build/logs
- run: vendor/bin/phpunit -c 'phpunit${{ matrix.phpunit }}.xml' --coverage-clover build/logs/clover.xml
- run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml

- name: Upload Coverage
uses: nick-invision/retry@v2
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_PARALLEL: 'true'
COVERALLS_FLAG_NAME: 'laravel:${{ matrix.laravel }}'
COVERALLS_FLAG_NAME: 'laravel:${{ matrix.lib.laravel }}'
with:
timeout_minutes: 1
max_attempts: 3
Expand Down
2 changes: 1 addition & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ build:
- php-scrutinizer-run

environment:
php: '8.1.8'
php: '8.3.17'

dependencies:
before:
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ Null Guard for Laravel. Designed for Middleware-based authentication and testing

## Requirements

- PHP: `^8.0`
- Laravel: `^9.0 || ^10.0 || ^11.0`
- PHP: `^8.2`
- Laravel: `^11.0 || ^12.0`

> [!NOTE]
> Older versions have outdated dependency requirements. If you cannot prepare the latest environment, please refer to past releases.

## Installing

Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
},
"require": {
"php": "^8.0",
"illuminate/auth": "^9.0 || ^10.0 || ^11.0",
"illuminate/contracts": "^9.0 || ^10.0 || ^11.0",
"illuminate/support": "^9.0 || ^10.0 || ^11.0"
"illuminate/auth": "^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0",
"illuminate/contracts": "^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0",
"illuminate/support": "^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0"
},
"require-dev": {
"orchestra/testbench": "*",
"orchestra/testbench-core": ">=7.0",
"phpunit/phpunit": ">=9.5",
"mockery/mockery": "^1.3.3 || ^1.4.2"
"orchestra/testbench-core": ">=9.0",
"phpunit/phpunit": ">=11.0",
"mockery/mockery": "^1.6.12"
},
"minimum-stability": "dev",
"prefer-stable": true,
Expand Down
25 changes: 25 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
backupGlobals="false"
bootstrap="vendor/autoload.php"
colors="true"
processIsolation="false"
stopOnFailure="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
cacheDirectory=".phpunit.cache"
backupStaticProperties="false">

<source>
<include>
<directory>./src</directory>
</include>
</source>

<coverage/>

<testsuites>
<testsuite name="Package Test Suite">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
</phpunit>
13 changes: 0 additions & 13 deletions phpunit10.xml

This file was deleted.

13 changes: 0 additions & 13 deletions phpunit11.xml

This file was deleted.

13 changes: 0 additions & 13 deletions phpunit9.xml

This file was deleted.