Skip to content

Commit

Permalink
Add support for laravel 11 (#514)
Browse files Browse the repository at this point in the history
* chore: add support for laravel 11

* chore: fixed testbench version
  • Loading branch information
shuvroroy authored Feb 12, 2024
1 parent ed8ed4c commit 7f8b5e8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 21 deletions.
41 changes: 23 additions & 18 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,35 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: [8.2, 8.1]
laravel: [10.*]
php: [8.3, 8.2, 8.1]
laravel: ["^11.0", "^10.0"]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
- laravel: "^10.0"
testbench: "^8.0"
- laravel: "^11.0"
testbench: "^9.0"
exclude:
- laravel: "^11.0"
php: 8.1

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

steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/pest
- name: Execute tests
run: vendor/bin/pest
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
"require": {
"php": "^8.1",
"google/analytics-data": "^0.9.4",
"laravel/framework": "^10.0",
"laravel/framework": "^10.0|^11.0",
"nesbot/carbon": "^2.66",
"spatie/laravel-package-tools": "^1.13.7",
"symfony/cache": "^6.0"
"symfony/cache": "^6.0|^7.0"
},
"require-dev": {
"league/flysystem": "^3.0",
"mockery/mockery": "^1.5",
"orchestra/testbench": "^8.0",
"orchestra/testbench": "^8.0|^9.0",
"pestphp/pest": "^2.0",
"spatie/ray": "^1.37"
},
Expand Down

0 comments on commit 7f8b5e8

Please sign in to comment.