From 616171a9b27a73e0407ae3b5557887255583afdd Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sat, 25 Jul 2020 19:30:48 +0100 Subject: [PATCH] Support Laravel 8 --- .github/workflows/tests.yml | 14 +++++++++++++- README.md | 2 +- composer.json | 6 +++--- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2207d1b..dbeeb6c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,12 +12,16 @@ jobs: strategy: matrix: php: ['7.1', '7.2', '7.3', '7.4'] - laravel: ['5.5', '5.6', '5.7', '5.8', '6', '7'] + laravel: ['5.5', '5.6', '5.7', '5.8', '6', '7', '8'] exclude: - php: '7.1' laravel: '6' - php: '7.1' laravel: '7' + - php: '7.1' + laravel: '8' + - php: '7.2' + laravel: '8' steps: - name: Checkout Code @@ -81,6 +85,14 @@ jobs: command: composer require "laravel/framework:7.*" "phpunit/phpunit:^8.5|^9.0" --no-update --no-interaction if: "matrix.laravel == '7'" + - name: Select Laravel 8 + uses: nick-invision/retry@v1 + with: + timeout_minutes: 5 + max_attempts: 5 + command: composer require "laravel/framework:8.*" "phpunit/phpunit:^9.3" --no-update --no-interaction + if: "matrix.laravel == '8'" + - name: Install Dependencies uses: nick-invision/retry@v1 with: diff --git a/README.md b/README.md index ffc341b..6795df0 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ ## Installation -Alt Three Segment is a [Segment](https://segment.com/) bridge for Laravel. This version requires [PHP](https://php.net) 7.1-7.4, and supports Laravel 5.5-7. Simply require the package using [Composer](https://getcomposer.org): +Alt Three Segment is a [Segment](https://segment.com/) bridge for Laravel. This version requires [PHP](https://php.net) 7.1-7.4, and supports Laravel 5.5-8. Simply require the package using [Composer](https://getcomposer.org): ```bash $ composer require alt-three/segment:^3.5 diff --git a/composer.json b/composer.json index 4714582..d2ba5a9 100644 --- a/composer.json +++ b/composer.json @@ -11,13 +11,13 @@ ], "require": { "php": "^7.1.3", - "illuminate/config": "^5.5 || ^6.0 || ^7.0", - "illuminate/support": "^5.5 || ^6.0 || ^7.0", + "illuminate/config": "^5.5 || ^6.0 || ^7.0 || ^8.0", + "illuminate/support": "^5.5 || ^6.0 || ^7.0 || ^8.0", "segmentio/analytics-php": "~1.5.2" }, "require-dev": { "graham-campbell/analyzer": "^2.4 || ^3.0", - "graham-campbell/testbench": "^5.4", + "graham-campbell/testbench": "^5.5", "phpunit/phpunit": "^6.5 || ^7.5 || ^8.4 || ^9.0" }, "autoload": {