Feat: Raise minimum PHP requirement to 7.4
This commit is contained in:
15
.github/workflows/tests.yml
vendored
15
.github/workflows/tests.yml
vendored
@@ -12,7 +12,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
php-versions: ['7.0', '7.4', '8.0']
|
php-versions: ['7.4', '8.0']
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -27,18 +27,7 @@ jobs:
|
|||||||
tools: composer:v2
|
tools: composer:v2
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: composer install --prefer-dist --no-progress
|
||||||
# Install base dependencies from lock file
|
|
||||||
composer install --prefer-dist --no-progress
|
|
||||||
|
|
||||||
# Update specific dependencies for higher PHP versions if needed
|
|
||||||
if [[ "${{ matrix.php-versions }}" == "7.4" || "${{ matrix.php-versions }}" == "8.0" ]]; then
|
|
||||||
echo "Updating dependencies for PHP ${{ matrix.php-versions }}..."
|
|
||||||
composer require --dev phpunit/phpunit:"^9.5" 10up/wp_mock:"^1.0" --no-update --no-plugins --no-scripts
|
|
||||||
elif [[ "${{ matrix.php-versions }}" == "7.0" ]]; then
|
|
||||||
# Force PHPUnit 6.5 for PHP 7.0
|
|
||||||
composer require --dev phpunit/phpunit:"^6.5" --update-with-dependencies
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: ./vendor/bin/phpunit
|
run: ./vendor/bin/phpunit
|
||||||
|
|||||||
@@ -1,21 +1,21 @@
|
|||||||
{
|
{
|
||||||
"name": "wpallstars/wp-plugin-starter-template",
|
"name": "wpallstars/wp-plugin-starter-template-for-ai-coding",
|
||||||
"description": "A comprehensive starter template for WordPress plugins with best practices for AI-assisted development.",
|
"description": "A starter template for building WordPress plugins, focusing on AI coding assistance compatibility.",
|
||||||
"type": "wordpress-plugin",
|
"type": "wordpress-plugin",
|
||||||
"license": "GPL-2.0-or-later",
|
"license": "GPL-2.0-or-later",
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "WPALLSTARS",
|
"name": "WP All Stars",
|
||||||
"email": "info@wpallstars.com"
|
"email": "support@wpallstars.com"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"minimum-stability": "stable",
|
"minimum-stability": "stable",
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=7.0"
|
"php": ">=7.4"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^9.5",
|
"phpunit/phpunit": "^9.5",
|
||||||
"10up/wp_mock": "0.3.0",
|
"10up/wp_mock": "^1.0",
|
||||||
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
|
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
|
||||||
"wp-coding-standards/wpcs": "^3.0",
|
"wp-coding-standards/wpcs": "^3.0",
|
||||||
"phpcompatibility/phpcompatibility-wp": "^2.1"
|
"phpcompatibility/phpcompatibility-wp": "^2.1"
|
||||||
|
|||||||
39
composer.lock
generated
39
composer.lock
generated
@@ -4,33 +4,42 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "e81160902913b563f63aa2ab90c2915a",
|
"content-hash": "d6c5be2ba3ffdfe4efb6c9662fd167aa",
|
||||||
"packages": [],
|
"packages": [],
|
||||||
"packages-dev": [
|
"packages-dev": [
|
||||||
{
|
{
|
||||||
"name": "10up/wp_mock",
|
"name": "10up/wp_mock",
|
||||||
"version": "0.3.0",
|
"version": "1.1.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/10up/wp_mock.git",
|
"url": "https://github.com/10up/wp_mock.git",
|
||||||
"reference": "64956557e98ee4c8c56cd1e396e822adb4673714"
|
"reference": "f25b5895ed31bf5e7036fe0c666664364ae011c2"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/10up/wp_mock/zipball/64956557e98ee4c8c56cd1e396e822adb4673714",
|
"url": "https://api.github.com/repos/10up/wp_mock/zipball/f25b5895ed31bf5e7036fe0c666664364ae011c2",
|
||||||
"reference": "64956557e98ee4c8c56cd1e396e822adb4673714",
|
"reference": "f25b5895ed31bf5e7036fe0c666664364ae011c2",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"antecedent/patchwork": "^2.1",
|
"antecedent/patchwork": "^2.1",
|
||||||
"mockery/mockery": "^1.0",
|
"mockery/mockery": "^1.6",
|
||||||
"php": ">=7.0",
|
"php": ">=7.4 < 9",
|
||||||
"phpunit/phpunit": ">=6.0"
|
"phpunit/phpunit": "^9.6"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"behat/behat": "^3.0",
|
"behat/behat": "^v3.11.0",
|
||||||
"satooshi/php-coveralls": "^1.0",
|
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
|
||||||
"sebastian/comparator": ">=1.2.3"
|
"friendsofphp/php-cs-fixer": "^3.4",
|
||||||
|
"php-coveralls/php-coveralls": "^v2.7",
|
||||||
|
"php-stubs/wordpress-globals": "^0.2",
|
||||||
|
"php-stubs/wordpress-stubs": "^6.3",
|
||||||
|
"phpcompatibility/php-compatibility": "^9.3",
|
||||||
|
"phpstan/phpstan": "^1.10",
|
||||||
|
"phpstan/phpstan-mockery": "^1.1",
|
||||||
|
"phpstan/phpstan-phpunit": "^1.3",
|
||||||
|
"sebastian/comparator": "^4.0.8",
|
||||||
|
"sempro/phpunit-pretty-print": "^1.4"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -43,14 +52,14 @@
|
|||||||
},
|
},
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
"license": [
|
"license": [
|
||||||
"GPL-2.0+"
|
"BSD-3-Clause"
|
||||||
],
|
],
|
||||||
"description": "A mocking library to take the pain out of unit testing for WordPress",
|
"description": "A mocking library to take the pain out of unit testing for WordPress",
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/10up/wp_mock/issues",
|
"issues": "https://github.com/10up/wp_mock/issues",
|
||||||
"source": "https://github.com/10up/wp_mock/tree/master"
|
"source": "https://github.com/10up/wp_mock/tree/1.1.0"
|
||||||
},
|
},
|
||||||
"time": "2017-12-03T19:28:28+00:00"
|
"time": "2025-03-12T00:36:13+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "antecedent/patchwork",
|
"name": "antecedent/patchwork",
|
||||||
@@ -2580,7 +2589,7 @@
|
|||||||
"prefer-stable": false,
|
"prefer-stable": false,
|
||||||
"prefer-lowest": false,
|
"prefer-lowest": false,
|
||||||
"platform": {
|
"platform": {
|
||||||
"php": ">=7.0"
|
"php": ">=7.4"
|
||||||
},
|
},
|
||||||
"platform-dev": {},
|
"platform-dev": {},
|
||||||
"plugin-api-version": "2.6.0"
|
"plugin-api-version": "2.6.0"
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
* Release Branch: main
|
* Release Branch: main
|
||||||
* Release Asset: true
|
* Release Asset: true
|
||||||
* Requires at least: 5.0
|
* Requires at least: 5.0
|
||||||
* Requires PHP: 7.0
|
* Requires PHP: 7.4
|
||||||
* Update URI: https://github.com/wpallstars/wp-plugin-starter-template-for-ai-coding
|
* Update URI: https://github.com/wpallstars/wp-plugin-starter-template-for-ai-coding
|
||||||
*
|
*
|
||||||
* Gitea Plugin URI: https://gitea.wpallstars.com/wpallstars/wp-plugin-starter-template-for-ai-coding
|
* Gitea Plugin URI: https://gitea.wpallstars.com/wpallstars/wp-plugin-starter-template-for-ai-coding
|
||||||
|
|||||||
Reference in New Issue
Block a user