From 8759b81e5d67aa554793d5f493ad45b1cd042351 Mon Sep 17 00:00:00 2001 From: Syed Sirajul Islam Anik Date: Thu, 2 Mar 2023 16:08:40 +0600 Subject: [PATCH] workflow update to support more PHP & Laravel version (#9) * Comply with anik/amqp:^2.2 * workflow update: checkout->@v3, PHP 8.2, Laravel 10 * excludes PHP 8.2 for Laravel {6,7} * orchestra testbench updated for L10 support --- .github/workflows/standard-test-coverage.yml | 26 ++++++++++++++------ composer.json | 2 +- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/.github/workflows/standard-test-coverage.yml b/.github/workflows/standard-test-coverage.yml index 8c6fabd..6303d53 100644 --- a/.github/workflows/standard-test-coverage.yml +++ b/.github/workflows/standard-test-coverage.yml @@ -12,11 +12,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - uses: shivammathur/setup-php@v2 with: - php-version: 8.0 + php-version: 8.2 - name: Install PHP code sniffer run: composer global require squizlabs/php_codesniffer @@ -34,13 +34,17 @@ jobs: fail-fast: false matrix: os: [ ubuntu-latest ] - php: [ 7.2, 7.3, 7.4, 8.0, 8.1 ] - laravel: [ 6, 7, 8, 9 ] + php: [ 7.2, 7.3, 7.4, 8.0, 8.1, 8.2 ] + laravel: [ 6, 7, 8, 9, 10 ] exclude: - php: 8.1 laravel: 6 + - php: 8.2 + laravel: 6 - php: 8.1 laravel: 7 + - php: 8.2 + laravel: 7 - php: 7.2 laravel: 8 - php: 7.2 @@ -49,10 +53,18 @@ jobs: laravel: 9 - php: 7.4 laravel: 9 + - php: 7.2 + laravel: 10 + - php: 7.3 + laravel: 10 + - php: 7.4 + laravel: 10 + - php: 8.0 + laravel: 10 steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install PHP uses: shivammathur/setup-php@v2 @@ -73,13 +85,13 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install PHP uses: shivammathur/setup-php@v2 with: coverage: pcov - php-version: 8.0 + php-version: 8.2 - name: Install dependencies run: composer install --no-interaction --prefer-dist diff --git a/composer.json b/composer.json index 3fde024..811bbec 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ }, "require-dev": { "phpunit/phpunit": "^8.0|^9.0", - "orchestra/testbench": "^4.0|^5.0|^6.0|^7.0" + "orchestra/testbench": "^4.0|^5.0|^6.0|^7.0|^8.0" }, "autoload": { "psr-4": {