-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Logging): Updates logging to allow for tracking processing time
- Supports #516 - Updates the logging to also allow for tracking processing time of actions. - Refactors logging to allow for unit testing. - Adds unit tests for logging. - Updates Composer dependencies to the latest versions. - Changes GitHub Actions unit testing to reduce failures. - Updates Dev Container to be less noisy and remove false positive errors during startup.
- Loading branch information
Showing
10 changed files
with
673 additions
and
495 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eu | ||
|
||
# Activate the plugin. | ||
cd "/app" | ||
echo "Activating plugin..." | ||
if ! wp plugin is-active daggerhart-openid-connect-generic 2>/dev/null; then | ||
wp plugin activate daggerhart-openid-connect-generic --quiet | ||
fi | ||
|
||
echo "Done!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eux | ||
set -eu | ||
|
||
# true is shell command and always return 0 | ||
# false always return 1 | ||
|
@@ -17,17 +17,21 @@ sudo sh -c "echo 'precedence ::ffff:0:0/96 100' >> /etc/gai.conf" | |
|
||
# Install Composer dependencies. | ||
cd "${PLUGIN_DIR}" | ||
COMPOSER_ALLOW_XDEBUG=0 COMPOSER_MEMORY_LIMIT=-1 composer install | ||
echo "Installing Composer dependencies..." | ||
COMPOSER_NO_INTERACTION=1 COMPOSER_ALLOW_XDEBUG=0 COMPOSER_MEMORY_LIMIT=-1 composer install --no-progress --quiet | ||
|
||
# Install NPM dependencies. | ||
cd "${PLUGIN_DIR}" | ||
if [ ! -d "node_modules" ]; then | ||
echo "Installing NPM dependencies..." | ||
npm ci | ||
fi | ||
|
||
# Setup the WordPress environment. | ||
cd "/app" | ||
echo "Setting up WordPress at $SITE_HOST" | ||
wp core install --url="$SITE_HOST" --title="OpenID Connect Development" --admin_user="admin" --admin_email="[email protected]" --admin_password="password" --skip-email | ||
if ! wp core is-installed 2>/dev/null; then | ||
echo "Setting up WordPress at $SITE_HOST" | ||
wp core install --url="$SITE_HOST" --title="OpenID Connect Development" --admin_user="admin" --admin_email="[email protected]" --admin_password="password" --skip-email --quiet | ||
fi | ||
|
||
echo "Done!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.