From 0b309f34b1ae0c30d1d3b51acf84f3b5092263cf Mon Sep 17 00:00:00 2001 From: Niels Date: Wed, 25 Nov 2020 13:46:16 +0100 Subject: [PATCH 1/2] add support on php 8 --- .github/workflows/run-tests.yml | 15 +++++++-------- composer.json | 2 +- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 17bdfa8..0978efc 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -9,7 +9,7 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest, windows-latest] - php: [7.4] + php: [8.0, 7.4] laravel: [5.8.*, 6.*, 7.*, 8.*] dependency-version: [prefer-lowest, prefer-stable] include: @@ -28,12 +28,6 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: ~/.composer/cache/files - key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} - - name: Setup PHP uses: shivammathur/setup-php@v2 with: @@ -41,10 +35,15 @@ jobs: extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick coverage: none + - name: Setup problem matchers + run: | + echo "::add-matcher::${{ runner.tool_cache }}/php.json" + echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" + - 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 update --${{ matrix.dependency-version }} --prefer-dist --no-interaction - name: Execute tests run: vendor/bin/phpunit diff --git a/composer.json b/composer.json index 62c53e2..ed10675 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ } ], "require": { - "php": "^7.3", + "php": "^7.3|^8.0", "illuminate/support": "~5.8.0|^6.0|^7.0|^8.0", "drewm/mailchimp-api": "^2.4" }, From ba26dfa2209c76b6c739612fba2a723fb52d046c Mon Sep 17 00:00:00 2001 From: Niels Date: Wed, 25 Nov 2020 13:49:22 +0100 Subject: [PATCH 2/2] drop support for Laravel 5.8 --- .github/workflows/run-tests.yml | 6 ++---- composer.json | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 0978efc..a2fa91e 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -10,7 +10,7 @@ jobs: matrix: os: [ubuntu-latest, windows-latest] php: [8.0, 7.4] - laravel: [5.8.*, 6.*, 7.*, 8.*] + laravel: [6.*, 7.*, 8.*] dependency-version: [prefer-lowest, prefer-stable] include: - laravel: 8.* @@ -19,8 +19,6 @@ jobs: testbench: 5.* - laravel: 6.* testbench: 4.* - - laravel: 5.8.* - testbench: 3.8.* name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} @@ -32,7 +30,7 @@ jobs: 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 + 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 diff --git a/composer.json b/composer.json index ed10675..48d9d1f 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ ], "require": { "php": "^7.3|^8.0", - "illuminate/support": "~5.8.0|^6.0|^7.0|^8.0", + "illuminate/support": "^6.0|^7.0|^8.0", "drewm/mailchimp-api": "^2.4" }, "require-dev": {