forked from elementor/elementor
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into wp-rest-api
- Loading branch information
Showing
209 changed files
with
20,629 additions
and
48,415 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
49 changes: 0 additions & 49 deletions
49
.github/scripts/sync-features-branch-to-developer-branch.js
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -13,16 +13,6 @@ on: | |
- cron: '30 08 * * 0,1,2,3,4,5' | ||
workflow_dispatch: | ||
inputs: | ||
reporter: | ||
required: false | ||
description: 'Select a reporter' | ||
type: choice | ||
options: | ||
- allure-playwright | ||
- html | ||
- blob | ||
- list | ||
default: allure-playwright | ||
path-to-results: | ||
required: false | ||
description: 'Provide path to reporter files' | ||
|
@@ -51,7 +41,7 @@ jobs: | |
name: Build plugin | ||
uses: ./.github/workflows/build.yml | ||
Playwright: | ||
name: Playwright test - ${{ matrix.shardIndex }} on PHP 8.0 | ||
name: Playwright test - ${{ matrix.shardIndex }} on PHP 8.1 | ||
runs-on: ubuntu-latest | ||
needs: [build-plugin] | ||
if: ${{ ( github.event.pull_request.title == null || needs.build-plugin.outputs.changelog_diff ) && github.event.inputs.tag == '' }} | ||
|
@@ -65,6 +55,10 @@ jobs: | |
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
- name: Cache Docker images. | ||
uses: ScribeMD/[email protected] | ||
with: | ||
key: docker-${{ runner.os }}-${{ hashFiles('tests/playwright/.playwright-wp-lite-env.json') }} | ||
- name: Install Node.js 20.x | ||
uses: actions/setup-node@v4 | ||
with: | ||
|
@@ -73,38 +67,36 @@ jobs: | |
- name: Install dependencies | ||
run: | | ||
npm ci | ||
sed -i -e "s/image: 'mariadb:lts'/image: 'mariadb:11.2.4-jammy'/g" node_modules/@wordpress/env/lib/build-docker-compose-config.js | ||
- name: Download build artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: ${{ needs.build-plugin.outputs.artifact_name }} | ||
path: ./build | ||
- name: Update wp-env.json file | ||
env: | ||
PHP_VERSION: '8.0' | ||
WP_CORE_VERSION: 'latest' | ||
run: node ./.github/scripts/build-wp-env.js | ||
- name: Download hello-elementor theme | ||
run: | | ||
curl -L --output hello-elementor.zip "https://downloads.wordpress.org/theme/hello-elementor.zip" | ||
unzip hello-elementor | ||
- name: Install WordPress environment | ||
run: | | ||
npm run start-local-server | ||
- name: Update wordpress to nightly build | ||
if: ${{ github.event_name == 'schedule' }} | ||
run: npx wp-env run cli wp core update https://wordpress.org/nightly-builds/wordpress-latest.zip | ||
run: npx wp-lite-env cli --config=./tests/playwright/.playwright-wp-lite-env.json --port=8888 --command="wp core update https://wordpress.org/nightly-builds/wordpress-latest.zip" | ||
- name: Setup test data | ||
run: npm run test:setup:playwright | ||
- name: WordPress debug information | ||
run: | | ||
npx wp-env run cli wp core version | ||
npx wp-env run cli wp --info | ||
npx wp-lite-env cli --config=./tests/playwright/.playwright-wp-lite-env.json --port=8888 --command="wp core version" | ||
npx wp-lite-env cli --config=./tests/playwright/.playwright-wp-lite-env.json --port=8888 --command="wp --info" | ||
- name: Install playwright/test | ||
run: | | ||
npx playwright install chromium | ||
- name: Run Playwright tests | ||
if: ${{ matrix.shardIndex != 'elements-regression' }} | ||
run: npm run test:playwright -- --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} --reporter=${{ inputs.reporter || 'list,github' }} | ||
run: npm run test:playwright -- --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} | ||
- name: Run element regression tests | ||
if: ${{ matrix.shardIndex == 'elements-regression' }} | ||
run: npm run test:playwright:elements-regression -- --reporter=${{ inputs.reporter || 'list,github' }} | ||
run: npm run test:playwright:elements-regression | ||
- uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
|
@@ -113,7 +105,7 @@ jobs: | |
if-no-files-found: ignore | ||
retention-days: 2 | ||
PlaywrightWithTag: | ||
name: Playwright test - tagged tests on PHP 8.0 | ||
name: Playwright test - tagged tests on PHP 8.1 | ||
runs-on: ubuntu-latest | ||
needs: [ build-plugin ] | ||
if: ${{ github.event.inputs.tag }} | ||
|
@@ -134,26 +126,25 @@ jobs: | |
with: | ||
name: ${{ needs.build-plugin.outputs.artifact_name }} | ||
path: ./build | ||
- name: Update wp-env.json file | ||
env: | ||
PHP_VERSION: '8.0' | ||
WP_CORE_VERSION: 'latest' | ||
run: node ./.github/scripts/build-wp-env.js | ||
- name: Download hello-elementor theme | ||
run: | | ||
curl -L --output hello-elementor.zip "https://downloads.wordpress.org/theme/hello-elementor.zip" | ||
unzip hello-elementor | ||
- name: Install WordPress environment | ||
run: | | ||
npm run start-local-server | ||
- name: Setup test data | ||
run: npm run test:setup:playwright | ||
- name: WordPress debug information | ||
run: | | ||
npx wp-env run cli wp core version | ||
npx wp-env run cli wp --info | ||
npx wp-lite-env cli --config=./tests/playwright/.playwright-wp-lite-env.json --port=8888 --command="wp core version" | ||
npx wp-lite-env cli --config=./tests/playwright/.playwright-wp-lite-env.json --port=8888 --command="wp --info" | ||
- name: Install playwright/test | ||
run: | | ||
npx playwright install chromium | ||
- name: Run Playwright tests | ||
run: | | ||
npm run test:playwright -- --grep="${{ inputs.tag }}" --reporter=list,allure-playwright | ||
npm run test:playwright -- --grep="${{ inputs.tag }}" | ||
- uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
|
Oops, something went wrong.