Skip to content

Commit

Permalink
Merge pull request #12 from ensi-platform/laravel-11
Browse files Browse the repository at this point in the history
laravel-11
  • Loading branch information
MsNatali authored May 7, 2024
2 parents 7809fb0 + e85e578 commit d897372
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,25 @@ on:

jobs:
test:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.1]
laravel: [9.*]
stability: [prefer-lowest, prefer-stable]
php: [8.1, 8.2, 8.3]
laravel: [9.*, 10.*, 11.*]
include:
- laravel: 9.*
testbench: ^7.22
testbench: 7.*
- laravel: 10.*
testbench: 8.*
- laravel: 11.*
testbench: 9.*
exclude:
- laravel: 11.*
php: 8.1

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

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

steps:
- name: Checkout code
Expand All @@ -30,7 +36,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
coverage: none

- name: Setup problem matchers
Expand All @@ -40,6 +46,6 @@ jobs:
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
composer update --prefer-stable --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/pest
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.14",
"laravel/framework": "^8.40 || ^9.0 || ^10.0",
"orchestra/testbench": "^6.0 || ^7.0 || ^8.0",
"laravel/framework": "^8.40 || ^9.0 || ^10.0 || ^11.0",
"orchestra/testbench": "^6.0 || ^7.0 || ^8.0 || ^9.0",
"pestphp/pest": "^1.22 || ^2.0"
},
"extra": {
Expand Down

0 comments on commit d897372

Please sign in to comment.