From 7b51826757b4457f63fd930427cf61838a528dc4 Mon Sep 17 00:00:00 2001 From: "Gustavo R. Gentil" Date: Sun, 7 Nov 2021 19:20:12 -0300 Subject: [PATCH] feat: add php 8 support (#32) (#35) Co-authored-by: Zubair Mohsin --- .github/workflows/run-tests.yml | 17 ++++++++++++----- composer.json | 2 +- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 80a631a..11fcc80 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -7,15 +7,15 @@ 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.* @@ -23,6 +23,12 @@ jobs: 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 }} @@ -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 diff --git a/composer.json b/composer.json index c374fcb..c712c72 100644 --- a/composer.json +++ b/composer.json @@ -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": {