Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
robsontenorio committed Dec 3, 2024
1 parent 13599a5 commit d1798d6
Show file tree
Hide file tree
Showing 7 changed files with 2,485 additions and 966 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,13 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: [8.3, 8.4]
laravel: [9.*, 10.*, 11.*]
php: [8.2, 8.3, 8.4]
laravel: [11.*]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 9.*
testbench: 7.*
collision: 6.*
phpunit: 9.*
pest: 1.*
- laravel: 10.*
testbench: 8.*
collision: 7.*
phpunit: 10.*
pest: 2.*
- laravel: 11.*
testbench: 9.*
collision: 8.*
phpunit: 11.*
pest: 3.*

steps:
- name: Checkout code
Expand All @@ -46,7 +34,7 @@ jobs:

- name: Install dependencies
run: |
composer require "pestphp/pest:${{ matrix.pest }}" "phpunit/phpunit:${{ matrix.phpunit }}" "orchestra/testbench:${{ matrix.testbench }}" "nunomaduro/collision:${{ matrix.collision }}" --dev --no-interaction --no-update --ansi
composer require "orchestra/testbench:${{ matrix.testbench }}" "nunomaduro/collision:${{ matrix.collision }}" --dev --no-interaction --no-update --ansi
composer update --${{ matrix.stability }} --prefer-dist --no-interaction --ansi
- name: Execute tests
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ php_error*
.php_cs.cache
.php-cs-fixer.cache
.phpunit.result.cache
/.phpunit.cache
logs
*.log
18 changes: 9 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,25 @@
],
"require": {
"php": "^8.3|^8.4",
"illuminate/database": "^9.0|^10.0|^11.0",
"illuminate/support": "^9.0|^10.0|^11.0"
"illuminate/database": "^11.0",
"illuminate/support": "^11.0"
},
"require-dev": {
"laravel/pint": "^1.18",
"mockery/mockery": "^1.4",
"nunomaduro/collision": "^6.0|^7.0|^8.0",
"orchestra/testbench": "^7.7",
"pestphp/pest": "^1.0|^2.0|^3.0",
"phpunit/phpunit": "^9.0|^10.0|^11.0"
"mockery/mockery": "^1.6",
"nunomaduro/collision": "^8.5",
"orchestra/testbench": "^9.6",
"pestphp/pest": "^3.6",
"phpunit/phpunit": "^11.4"
},
"autoload": {
"psr-4": {
"Laracache\\": "src/"
}
},
"scripts": {
"test": "pest",
"test:coverage": "php -d pcov.enabled=1 ./vendor/bin/pest --coverage",
"test": "pest --compact",
"test:coverage": "php -d pcov.enabled=1 ./vendor/bin/pest --coverage --compact",
"post-autoload-dump": [
"@php ./vendor/bin/testbench package:discover --ansi"
]
Expand Down
Loading

0 comments on commit d1798d6

Please sign in to comment.