Skip to content

Commit

Permalink
Changes for removing php 8.0 & D9 support
Browse files Browse the repository at this point in the history
  • Loading branch information
kedarkhaire committed Feb 28, 2024
1 parent 3ea9ecc commit 8909989
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,11 @@ jobs:
fail-fast: false
matrix:
php-version:
- "8.0"
- "8.1"
- "8.2"
drupal-core:
# Should update the following as the minimum supported version from Drupal.org
- "9.5.x"
- "10.1.x"
exclude:
- php-version: "8.2"
drupal-core: "9.5.x"
- php-version: "8.0"
drupal-core: "10.1.x"

steps:

Expand Down Expand Up @@ -116,13 +109,13 @@ jobs:
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional
- name: "Run PHPUnit Tests"
if: ${{ matrix.drupal-core != '9.5.x' || matrix.php-version != '8.1' }}
if: ${{ matrix.drupal-core != '10.1.x' || matrix.php-version != '8.1' }}
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 == '9.5.x' && matrix.php-version == '8.1' }}
if: ${{ matrix.drupal-core == '10.1.x' && matrix.php-version == '8.1' }}
run: |
cd drupal
cp modules/contrib/apigee_api_catalog/phpunit.core.xml.dist core/phpunit.xml
Expand All @@ -136,7 +129,7 @@ jobs:
path: drupal/sites/simpletest/browser_output/*

- name: Upload Coverage to Codecov
if: ${{ matrix.drupal-core == '9.5.x' && matrix.php-version == '8.1' }}
if: ${{ matrix.drupal-core == '10.1.x' && matrix.php-version == '8.1' }}
uses: codecov/codecov-action@v3
with:
files: /tmp/coverage.xml
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"type": "drupal-module",
"description": "Apigee API Catalog for Drupal",
"require": {
"php": "~8.0.0 || ~8.1.0 || ~8.2.0",
"php": "~8.1.0 || ~8.2.0",
"drupal/entity": "^1.1",
"drupal/file_link": "^2.0",
"drupal/apigee_edge": "^2.0 || ^3.0.0",
"drupal/apigee_edge": "^3.0.0",
"webonyx/graphql-php": "^14.11"
},
"require-dev": {
"cweagans/composer-patches": "^1.6",
"drupal/core-dev": "^9.5 || ^10.1",
"drupal/core-dev": "^10.1",
"drush/drush": "^11.5",
"mglaman/drupal-check": "^1.3",
"phpmd/phpmd": "^2.8.2",
Expand Down

0 comments on commit 8909989

Please sign in to comment.