Skip to content

Commit

Permalink
Test in PHP 8.1 & Laravel 9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mpyw committed Nov 13, 2021
1 parent dd49c13 commit 0fadc8f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 60 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,20 @@ jobs:

strategy:
matrix:
php: [7.3, 7.4, 8.0]
php: [7.3, 7.4, '8.0', 8.1]
lib:
- { laravel: ^8.0, testbench: ^6.0, composer_flags: --prefer-stable }
- { laravel: ^7.0, testbench: ^5.0, composer_flags: --prefer-stable }
- { laravel: ^6.0, testbench: ^4.0, composer_flags: --prefer-stable }
- { laravel: ^6.0, testbench: ^4.0, composer_flags: --prefer-stable --prefer-lowest }
- { laravel: ^9.0 }
- { laravel: ^8.0 }
- { laravel: ^7.0 }
- { laravel: ^6.0 }
- { laravel: ^6.0, flags: --prefer-lowest }
exclude:
- { php: 8.1, lib: { laravel: ^7.0 } }
- { php: 8.1, lib: { laravel: ^6.0 } }
- { php: 8.1, lib: { laravel: ^6.0, flags: --prefer-lowest } }
- { php: '8.0', lib: { laravel: ^6.0, flags: --prefer-lowest } }
- { php: 7.4, lib: { laravel: ^9.0 } }
- { php: 7.3, lib: { laravel: ^9.0 } }

steps:
- uses: actions/checkout@v2
Expand All @@ -24,9 +32,7 @@ jobs:
php-version: ${{ matrix.php }}
coverage: xdebug

- run: composer require "laravel/framework:${{ matrix.lib.laravel }}" --dev --no-update ${{ matrix.lib.composer_flags }}
- run: composer require "phpunit/phpunit" "orchestra/testbench:${{ matrix.lib.testbench }}" --dev --no-update
- run: composer update
- run: composer require "laravel/framework:${{ matrix.lib.laravel }}" --dev ${{ matrix.lib.flags }}
- run: mkdir -p build/logs
- run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml

Expand Down
48 changes: 0 additions & 48 deletions .php_cs

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Null Guard for Laravel. Designed for Middleware-based authentication and testing
## Requirements

- PHP: `^7.3 || ^8.0`
- Laravel: `^6.0 || ^7.0 || ^8.0`
- Laravel: `^6.0 || ^7.0 || ^8.0 || ^9.0`

## Installing

Expand Down
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@
"illuminate/support": "^6.0 || ^7.0 || ^8.0 || ^9.0"
},
"require-dev": {
"orchestra/testbench": "^6.0",
"friendsofphp/php-cs-fixer": "^2.14",
"mockery/mockery": "^1.3"
"orchestra/testbench": "*",
"mockery/mockery": "^1.3.3"
},
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"laravel": {
"providers": [
Expand Down

0 comments on commit 0fadc8f

Please sign in to comment.