Skip to content

Commit

Permalink
feat: add php 8 support (#32) (#35)
Browse files Browse the repository at this point in the history
Co-authored-by: Zubair Mohsin <[email protected]>
  • Loading branch information
gurgentil and awebartisan authored Nov 7, 2021
1 parent d486a4f commit 7b51826
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,28 @@ jobs:
runs-on: ubuntu-latest

strategy:
fail-fast: true
fail-fast: false

matrix:
php: [7.2, 7.3, 7.4]
php: [7.2, 7.3, 7.4, 8.0]
laravel: [6.*, 7.*, 8.*]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 8.*
testbench: 6.*
testbench: ^6.15
- laravel: 7.*
testbench: 5.*
- laravel: 6.*
testbench: 4.*
exclude:
- laravel: 8.*
php: 7.2
- laravel: 6.*
php: 8.0
dependency-version: prefer-lowest
- laravel: 7.*
php: 8.0
dependency-version: prefer-lowest

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

Expand All @@ -37,7 +43,8 @@ jobs:
coverage: xdebug
- 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 require "orchestra/testbench:${{ matrix.testbench }}" --dev --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/phpunit --coverage-text
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
],
"require": {
"php": "^7.2.5",
"php": "^7.2.5|^8.0",
"illuminate/support": "^6.0|^7.0|^8.0"
},
"require-dev": {
Expand Down

0 comments on commit 7b51826

Please sign in to comment.