From 436effc5fd12614430fe733d7766240cf87af54d Mon Sep 17 00:00:00 2001 From: James Amner Date: Thu, 20 Jun 2024 11:57:25 +0100 Subject: [PATCH] [FIX] Update Dependabot Configuration --- .github/dependabot.yml | 12 ++++++++++-- composer.json | 9 +++++++-- docker/php/Dockerfile | 6 +++--- docker/wordpress/db.php | 4 ++-- docker/wordpress/mu-plugins/plugin-loader.php | 2 +- 5 files changed, 23 insertions(+), 10 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index fe55b17..329b999 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,10 +1,13 @@ version: 2 updates: + # PHP Deps - package-ecosystem: composer directory: "/" registries: "*" schedule: interval: daily + + # NodeJS Deps - package-ecosystem: npm directory: "/" registries: "*" @@ -20,9 +23,14 @@ updates: commit-message: prefix: "[DEPS][GHA]" - # Docker PHP image + # Docker images - package-ecosystem: docker - directory: "/docker" + directory: "/docker/nodejs" + registries: "*" + schedule: + interval: daily + - package-ecosystem: docker + directory: "/docker/php" registries: "*" schedule: interval: daily diff --git a/composer.json b/composer.json index ea3e291..34ba917 100644 --- a/composer.json +++ b/composer.json @@ -15,6 +15,10 @@ ], "type": "composer", "url": "https://wpackagist.org" + }, + { + "type": "vcs", + "url": "https://github.com/wordpress/sqlite-database-integration.git" } ], "require": { @@ -37,8 +41,9 @@ "phpcompatibility/phpcompatibility-wp": "^2.1", "symplify/monorepo-builder": "^11.2", "szepeviktor/phpstan-wordpress": "^1.3", - "wpackagist-plugin/sqlite-database-integration": "^2.0", - "wpackagist-theme/twentytwentyfour": "^1.0" + "wordpress/sqlite-database-integration": "^2.0", + "wpackagist-theme/twentytwentyfour": "^1.0", + "composer/installers": "^2.2" }, "autoload": { "psr-4": { diff --git a/docker/php/Dockerfile b/docker/php/Dockerfile index a189935..3396535 100644 --- a/docker/php/Dockerfile +++ b/docker/php/Dockerfile @@ -1,8 +1,8 @@ -FROM php -COPY --from=composer /usr/bin/composer /usr/bin/composer +FROM php:8.2.20 +COPY --from=composer:2.7.7 /usr/bin/composer /usr/bin/composer # PECL for code coverage RUN pecl install pcov && docker-php-ext-enable pcov # git and zip for composer -RUN apt-get update && apt-get install -y git zip +RUN apt-get update && apt-get install -y git zip && apt-get clean && rm -rf /var/lib/apt/lists/* diff --git a/docker/wordpress/db.php b/docker/wordpress/db.php index d9d727c..36ddf8b 100644 --- a/docker/wordpress/db.php +++ b/docker/wordpress/db.php @@ -14,7 +14,7 @@ define( 'SQLITE_DB_DROPIN_VERSION', '1.8.0' ); // Bail early if the SQLite implementation was not located in the plugin. -if ( ! file_exists( ABSPATH . 'wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite/db.php' ) ) { +if ( ! file_exists( ABSPATH . 'wp-content/plugins/vendor/wordpress/sqlite-database-integration/wp-includes/sqlite/db.php' ) ) { return; } @@ -24,7 +24,7 @@ } // Require the implementation from the plugin. -require_once ABSPATH . 'wp-content/mu-plugins/sqlite-database-integration/wp-includes/sqlite/db.php'; +require_once ABSPATH . 'wp-content/plugins/vendor/wordpress/sqlite-database-integration/wp-includes/sqlite/db.php'; // Activate the performance-lab plugin if it is not already activated. add_action( diff --git a/docker/wordpress/mu-plugins/plugin-loader.php b/docker/wordpress/mu-plugins/plugin-loader.php index f77aa78..e45259a 100644 --- a/docker/wordpress/mu-plugins/plugin-loader.php +++ b/docker/wordpress/mu-plugins/plugin-loader.php @@ -10,4 +10,4 @@ /** * Nothing fancy here. Just `require_once` the necessary plugin files. - */ \ No newline at end of file + */