From 4225a38fc3e127fbb523339abbf38edcbc74a47e Mon Sep 17 00:00:00 2001 From: Mohammad ALTAWEEL Date: Thu, 10 Feb 2022 14:10:24 +0300 Subject: [PATCH] Laravel 9 support --- .github/workflows/tests.yml | 24 ++++++++++++++++++++++-- README.md | 2 +- composer.json | 6 +++--- 3 files changed, 26 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d47b4ea..7e8a847 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,8 +11,8 @@ jobs: strategy: matrix: - php: ['7.1', '7.2', '7.3', '7.4', '8.0'] - laravel: ['5.5', '5.6', '5.7', '5.8', '6', '7', '8'] + php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1'] + laravel: ['5.5', '5.6', '5.7', '5.8', '6', '7', '8', '9'] exclude: - php: '7.1' laravel: '6' @@ -20,8 +20,12 @@ jobs: laravel: '7' - php: '7.1' laravel: '8' + - php: '7.1' + laravel: '9' - php: '7.2' laravel: '8' + - php: '7.2' + laravel: '9' - php: '8.0' laravel: '5.5' - php: '8.0' @@ -30,6 +34,14 @@ jobs: laravel: '5.7' - php: '8.0' laravel: '5.8' + - php: '8.1' + laravel: '5.5' + - php: '8.1' + laravel: '5.6' + - php: '8.1' + laravel: '5.7' + - php: '8.1' + laravel: '5.8' steps: - name: Checkout Code @@ -101,6 +113,14 @@ jobs: command: composer require "laravel/framework:8.*" "phpunit/phpunit:^9.3" --no-update --no-interaction if: "matrix.laravel == '8'" + - name: Select Laravel 9 + uses: nick-invision/retry@v1 + with: + timeout_minutes: 5 + max_attempts: 5 + command: composer require "laravel/framework:9.*" "phpunit/phpunit:^9.5" --no-update --no-interaction + if: "matrix.laravel == '9'" + - name: Install PHP 7 Dependencies uses: nick-invision/retry@v1 with: diff --git a/README.md b/README.md index 5dd305c..8f2d58f 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ ## Installation -Alt Three Locker is a lock manager for Laravel. This version requires [PHP](https://php.net) 7.1-8.0, and supports Laravel 5.5-8. Simply require the package using [Composer](https://getcomposer.org): +Alt Three Locker is a lock manager for Laravel. This version requires [PHP](https://php.net) 7.1-8.1, and supports Laravel 5.5-9. Simply require the package using [Composer](https://getcomposer.org): ```bash $ composer require alt-three/locker:^6.4 diff --git a/composer.json b/composer.json index ee98b9d..093b255 100644 --- a/composer.json +++ b/composer.json @@ -11,9 +11,9 @@ ], "require": { "php": "^7.1.3 || ^8.0", - "illuminate/contracts": "^5.5 || ^6.0 || ^7.0 || ^8.0", - "illuminate/support": "^5.5 || ^6.0 || ^7.0 || ^8.0", - "illuminate/redis": "^5.5 || ^6.0 || ^7.0 || ^8.0" + "illuminate/contracts": "^5.5 || ^6.0 || ^7.0 || ^8.0 || ^9.0", + "illuminate/support": "^5.5 || ^6.0 || ^7.0 || ^8.0 || ^9.0", + "illuminate/redis": "^5.5 || ^6.0 || ^7.0 || ^8.0 || ^9.0" }, "require-dev": { "graham-campbell/analyzer": "^2.4 || ^3.0",