forked from ampproject/amp-wp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ampproject#7605 from ampproject/bump/nodejs
Bump NodeJS from 14 to 18
- Loading branch information
Showing
8 changed files
with
22,589 additions
and
19,855 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
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 |
---|---|---|
|
@@ -365,14 +365,6 @@ jobs: | |
env: | ||
COMPOSE_INTERACTIVE_NO_CLI: true | ||
|
||
|
||
# TODO: Remove it once node version in .nvmrc is updated to >=16. | ||
- name: Setup Node | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 16 | ||
cache: npm | ||
|
||
- name: Run E2E tests | ||
run: npm run test:e2e:ci | ||
|
||
|
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 +1 @@ | ||
14 | ||
18 |
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
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ HOST_PORT=$(dc port $CONTAINER 80 | awk -F : '{printf $2}') | |
|
||
# Wait until the WordPress site is responding to requests. | ||
echo -en $(status_message "Attempting to connect to WordPress...") | ||
until $(curl -L http://localhost:$HOST_PORT -so - 2>&1 | grep -q "WordPress"); do | ||
until $(curl -L http://127.0.0.1:$HOST_PORT -so - 2>&1 | grep -q "WordPress"); do | ||
echo -n '.' | ||
sleep 5 | ||
done | ||
|
@@ -52,7 +52,7 @@ fi | |
|
||
# Install WordPress. | ||
echo -e $(status_message "Installing WordPress...") | ||
wp core install --title="$SITE_TITLE" --admin_user=admin --admin_password=password [email protected] --skip-email --url=http://localhost:$HOST_PORT --quiet | ||
wp core install --title="$SITE_TITLE" --admin_user=admin --admin_password=password [email protected] --skip-email --url=http://127.0.0.1:$HOST_PORT --quiet | ||
|
||
# Create additional users. | ||
echo -e $(status_message "Creating additional users...") | ||
|
@@ -92,9 +92,9 @@ fi | |
# If the 'wordpress' volume wasn't during the down/up earlier, but the post port has changed, we need to update it. | ||
echo -e $(status_message "Checking the site's url...") | ||
CURRENT_URL=$(wp option get siteurl) | ||
if [ "$CURRENT_URL" != "http://localhost:$HOST_PORT" ]; then | ||
wp option update home "http://localhost:$HOST_PORT" --quiet | ||
wp option update siteurl "http://localhost:$HOST_PORT" --quiet | ||
if [ "$CURRENT_URL" != "http://127.0.0.1:$HOST_PORT" ]; then | ||
wp option update home "http://127.0.0.1:$HOST_PORT" --quiet | ||
wp option update siteurl "http://127.0.0.1:$HOST_PORT" --quiet | ||
fi | ||
|
||
# Install a dummy favicon to avoid 404 errors. | ||
|
Oops, something went wrong.