Skip to content

Commit

Permalink
Add supprot to laravel 11
Browse files Browse the repository at this point in the history
  • Loading branch information
cesargb committed Mar 7, 2024
1 parent 962d54b commit 329436c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
27 changes: 22 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,43 @@ jobs:

strategy:
matrix:
php-versions: ['8.3', '8.2', '8.1', '8.0']
php: ['8.3', '8.2', '8.1', '8.0']
laravel: ['9.*', '10.*', '11.*']
dependency-version: [prefer-stable]
include:
- laravel: 9.*
testbench: 7.*
- laravel: 10.*
testbench: 8.*
- laravel: 11.*
testbench: 9.*
exclude:
- laravel: 10.*
php: 8.0
- laravel: 11.*
php: 8.1
- laravel: 11.*
php: 8.0

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

steps:
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, bcmath, intl, exif
coverage: xdebug


- name: Validate composer.json and composer.lock
run: composer validate

- name: Install dependencies
run: |
composer install
composer dump
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Run test phpunit
run: vendor/bin/phpunit
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
"guzzlehttp/guzzle": "^7.4",
"league/omnipay": "^3.2",
"omnipay/common": "^3.2",
"illuminate/contracts": "^9.25|^10.0"
"illuminate/contracts": "^9.25|^10.0|^11.0"
},
"require-dev": {
"guzzlehttp/psr7": "^1",
"omnipay/tests": "^4.1",
"phpunit/phpunit": "^9.5",
"orchestra/testbench": "^7.0|^8.0",
"orchestra/testbench": "^7.0|^8.0|^9.0",
"friendsofphp/php-cs-fixer": "^3.10",
"phpstan/phpstan": "^1.8",
"nunomaduro/larastan": "^2.1"
Expand Down

0 comments on commit 329436c

Please sign in to comment.