Skip to content

Commit

Permalink
Merge pull request #6019 from Automattic/staging
Browse files Browse the repository at this point in the history
Production release: v20241126.0
  • Loading branch information
rinatkhaziev authored Nov 26, 2024
2 parents e95b988 + 0fec8dd commit 6729596
Show file tree
Hide file tree
Showing 21 changed files with 321 additions and 135 deletions.
2 changes: 1 addition & 1 deletion .github/actions/prepare-source/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ runs:
using: composite
steps:
- name: Check out mu-plugins-ext
uses: actions/[email protected].1
uses: actions/[email protected].2
with:
repository: 'Automattic/vip-go-mu-plugins-ext'
path: 'vip-go-mu-plugins-ext'
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/run-wp-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ runs:
uses: ramsey/[email protected]

- name: Set up WordPress and WordPress Test Library
uses: sjinks/[email protected].1
uses: sjinks/[email protected].2
with:
version: ${{ inputs.wordpress }}

Expand Down Expand Up @@ -122,7 +122,7 @@ runs:
"${PHPUNIT}" ${OPTIONS}
- name: Upload coverage report
uses: codecov/codecov-action@v4.6.0
uses: codecov/codecov-action@v5.0.2
with:
files: ${{ inputs.coverage-file }}
flags: ${{ inputs.coverage-flags }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/changelog-summary-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: softprops/action-gh-release@v2.0.9
- uses: softprops/action-gh-release@v2.1.0
with:
generate_release_notes: true
tag_name: ${{ steps.id-generator.outputs.id }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ jobs:
uses: actions/[email protected]

- name: Initialize CodeQL
uses: github/codeql-action/[email protected].0
uses: github/codeql-action/[email protected].4
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql-config.yml

- name: Perform CodeQL Analysis
uses: github/codeql-action/[email protected].0
uses: github/codeql-action/[email protected].4
21 changes: 9 additions & 12 deletions .github/workflows/core-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ permissions:
contents: read

env:
LOCAL_PHP: "8.0-fpm"
LOCAL_PHP: "8.2-fpm"
LOCAL_PHP_XDEBUG: "false"
LOCAL_PHP_XDEBUG_MODE: "develop,debug"
LOCAL_DB_TYPE: "mysql"
LOCAL_DB_VERSION: "8.0"
LOCAL_DB_VERSION: "8.3"
LOCAL_PHP_MEMCACHED: "true"
LOCAL_WP_TESTS_DOMAIN: "example.org"
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: "true"

jobs:
Expand Down Expand Up @@ -57,6 +60,7 @@ jobs:
- name: Tweaks
run: |
echo "define( 'VIP_JETPACK_SKIP_LOAD', 'true' );" >> "wordpress/src/wp-content/mu-plugins/000-vip-init.php"
cp wordpress/.env.example wordpress/.env
echo "GITHUB_EVENT_NAME=pull_request" >> "wordpress/.env"
- name: Set up Node.js
Expand All @@ -72,17 +76,10 @@ jobs:
php-version: 8.0
coverage: none

# - name: Install Composer dependencies
# uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6 # v2.2.0
# with:
# working-directory: wordpress
- name: Install Composer dependencies
run: composer install -n
working-directory: wordpress

# - name: Downgrade PHPUnit
# run: composer require --dev -n phpunit/phpunit:^9
# working-directory: wordpress
uses: ramsey/[email protected]
with:
working-directory: wordpress

- name: Install npm dependencies
run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
uses: actions/[email protected]

- name: Review dependencies
uses: actions/dependency-review-action@v4.3.4
uses: actions/dependency-review-action@v4.4.0
1 change: 1 addition & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
playwright.azureedge.net:443
production.cloudflare.docker.com:443
public-api.wordpress.com:443
raw.githubusercontent.com:443
registry-1.docker.io:443
registry.npmjs.org:443
s.w.org:443
Expand Down
1 change: 1 addition & 0 deletions 000-vip-init.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@
__DIR__ . '/telemetry/tracks/class-tracks-event-dto.php',
__DIR__ . '/telemetry/tracks/class-tracks-event.php',
__DIR__ . '/telemetry/tracks/class-tracks-client.php',
__DIR__ . '/telemetry/tracks/tracks-utils.php',
];

// If there is a missing file, the loop will break and the telemetry files will not be loaded at all
Expand Down
20 changes: 16 additions & 4 deletions __tests__/e2e/bin/setup-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,26 @@ if [ -z "${version}" ]; then
version=${WORDPRESS_VERSION:-latest}
fi

if [ "${version}" = "latest" ]; then
WPVER="$(wget https://github.com/Automattic/vip-container-images/raw/refs/heads/master/wordpress/versions.json -O - | jq -r '[.[] | select(.prerelease == false)] | max_by(.tag) | .tag')"
else
WPVER="$(wget https://github.com/Automattic/vip-container-images/raw/refs/heads/master/wordpress/versions.json -O - | jq -r --arg ref_value "${version}" '.[] | select(.ref == $ref_value) | .tag')"
fi

if [ -z "${WPVER}" ]; then
WPVER=trunk
fi

# Destroy existing test site
vip dev-env destroy --slug=e2e-test-site || true

# Create and run test site
vip --slug=e2e-test-site dev-env create --title="E2E Testing site" --mu-plugins="${pluginPath}" --mailpit false --wordpress=trunk --multisite=false --app-code="${clientCodePath}" --php 8.2 --xdebug false --phpmyadmin false --elasticsearch true < /dev/null
vip --slug=e2e-test-site dev-env create --title="E2E Testing site" --mu-plugins="${pluginPath}" --mailpit false --wordpress="${WPVER}" --multisite=false --app-code="${clientCodePath}" --php 8.2 --xdebug false --phpmyadmin false --elasticsearch true < /dev/null
vip dev-env start --slug e2e-test-site --skip-wp-versions-check
vip dev-env shell --root --slug e2e-test-site -- chown -R www-data:www-data /wp
vip dev-env shell --root --slug e2e-test-site -- chown -R www-data:www-data /wp/wp-content/plugins
vip dev-env exec --slug e2e-test-site --quiet -- wp plugin install --activate classic-editor
vip dev-env exec --slug e2e-test-site --quiet -- wp core update --force --version="${version}"
vip dev-env exec --slug e2e-test-site --quiet -- wp core update-db
if [ "${WPVER}" = 'trunk' ]; then
vip dev-env exec --slug e2e-test-site --quiet -- wp core update --force --version="${version}"
vip dev-env exec --slug e2e-test-site --quiet -- wp core update-db
fi
vip dev-env exec --slug e2e-test-site --quiet -- wp rewrite structure '/%postname%/'
60 changes: 27 additions & 33 deletions __tests__/e2e/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion __tests__/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"asana-phrase": "^0.0.8",
"eslint": "^8.51.0",
"eslint-plugin-deprecation": "^3.0.0",
"eslint-plugin-playwright": "^1.0.1",
"eslint-plugin-playwright": "^2.0.1",
"typescript": "^5.2.2"
}
}
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"erusev/parsedown": "1.7.4",
"dms/phpunit-arraysubset-asserts": "0.5.0",
"yoast/phpunit-polyfills": "3.0.0",
"johnpbloch/wordpress-core": "6.6.2",
"wp-phpunit/wp-phpunit": "6.6.2",
"johnpbloch/wordpress-core": "6.7.0",
"wp-phpunit/wp-phpunit": "6.7.0",
"wp-cli/wp-cli": "2.11.0"
},
"config": {
Expand Down
24 changes: 12 additions & 12 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6729596

Please sign in to comment.