Skip to content

Commit

Permalink
feat: support for laravel 11
Browse files Browse the repository at this point in the history
  • Loading branch information
binaryk committed Jul 5, 2024
1 parent 9bc858e commit bafdf3a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tests
name: run-tests

on: [push, pull_request]

Expand All @@ -8,19 +8,19 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.0]
laravel: [9.*]
stability: [prefer-stable]
os: [ubuntu-latest, windows-latest]
php: [8.2]
laravel: [11.*]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 9.*
testbench: 7.*
- laravel: 11.*
testbench: 9.*

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

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -39,5 +39,11 @@ jobs:
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Clear Composer cache
run: composer clear-cache

- name: Wait for a few seconds
run: sleep 5

- name: Execute tests
run: vendor/bin/phpunit
run: ./vendor/bin/testbench package:test --no-coverage
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
}
],
"require": {
"php": "^8.0",
"illuminate/support": "^9.0",
"laravel/slack-notification-channel": "^2.4",
"php": "^8.2",
"illuminate/contracts": "^11.0",
"laravel/slack-notification-channel": "^3.2",
"ext-json": "*"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.2",
"laravel/sanctum": "^2.8",
"orchestra/testbench": "^7.0",
"phpunit/phpunit": "^9.3",
"laravel/sanctum": "^4.0",
"orchestra/testbench": "^9.0",
"phpunit/phpunit": "^10.0|^11.0",
"symfony/stopwatch": "^4.4|^5.0",
"nunomaduro/larastan": "^2.0",
"phpstan/extension-installer": "^1.1"
Expand Down

0 comments on commit bafdf3a

Please sign in to comment.