From f6beb15505843d36d89eef2cb51454e34985c89a Mon Sep 17 00:00:00 2001 From: Kedar Khaire Date: Tue, 18 Jun 2024 17:48:57 +0530 Subject: [PATCH] Api Catlog changes of PHP & Drupal version support updates --- .github/workflows/php.yml | 9 +++++---- composer.json | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index c2d865f..cb68f5c 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -31,10 +31,11 @@ jobs: php-version: - "8.1" - "8.2" + - "8.3" drupal-core: # Should update the following as the minimum supported version from Drupal.org - - "10.1.x" - "10.2.x" + - "10.3.x" steps: @@ -110,13 +111,13 @@ jobs: sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional - name: "Run PHPUnit Tests" - if: ${{ matrix.drupal-core != '10.1.x' || matrix.php-version != '8.1' }} + if: ${{ matrix.drupal-core != '10.2.x' || matrix.php-version != '8.2' }} run: | cd drupal vendor/bin/phpunit -c core --verbose --color --group apigee_api_catalog --testsuite unit,kernel,functional,functional-javascript modules/contrib/apigee_api_catalog - name: "Run PHPUnit Tests with Code Coverage" - if: ${{ matrix.drupal-core == '10.1.x' && matrix.php-version == '8.1' }} + if: ${{ matrix.drupal-core == '10.2.x' && matrix.php-version == '8.2' }} run: | cd drupal cp modules/contrib/apigee_api_catalog/phpunit.core.xml.dist core/phpunit.xml @@ -130,7 +131,7 @@ jobs: path: drupal/sites/simpletest/browser_output/* - name: Upload Coverage to Codecov - if: ${{ matrix.drupal-core == '10.1.x' && matrix.php-version == '8.1' }} + if: ${{ matrix.drupal-core == '10.2.x' && matrix.php-version == '8.2' }} uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/composer.json b/composer.json index 63e72b6..34cbc84 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "type": "drupal-module", "description": "Apigee API Catalog for Drupal", "require": { - "php": "~8.1.0 || ~8.2.0", + "php": "~8.1.0 || ~8.2.0 || ~8.3.0", "drupal/entity": "^1.1", "drupal/file_link": "^2.0", "drupal/apigee_edge": "^3.0.0",