Skip to content

Commit

Permalink
Support Laravel 9 (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna authored Mar 20, 2022
1 parent 535597f commit 9c6ccfd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [7.4, 7.3]
laravel: [8.*]
php: [8.1, 8.0]
laravel: [9.*]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 8.*
testbench: 6.*

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

Expand All @@ -28,15 +25,15 @@ jobs:
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- name: Setup PHP 🔧
uses: shivammathur/setup-php@v1
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 --no-suggest
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Execute tests (Unit and Feature tests) via PHPUnit 🧪
run: vendor/bin/phpunit --coverage-clover=coverage.xml
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
}
],
"require": {
"php": ">=7.3",
"laravel/framework": "~8.0"
"php": "^8.0",
"laravel/framework": "^9.0"
},
"require-dev": {
"orchestra/testbench": "~6.0",
"orchestra/testbench": "^7.0",
"phpunit/phpunit": "^9.0",
"laravel/legacy-factories": "^1.1"
"laravel/legacy-factories": "^1.3"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 9c6ccfd

Please sign in to comment.