Skip to content

Commit

Permalink
Merge branch 'main' into wp-rest-api
Browse files Browse the repository at this point in the history
  • Loading branch information
matipojo authored Dec 25, 2024
2 parents 7a17ebb + c14e952 commit 7b37a3c
Show file tree
Hide file tree
Showing 209 changed files with 20,629 additions and 48,415 deletions.
22 changes: 0 additions & 22 deletions .github/scripts/sync-branches.sh

This file was deleted.

49 changes: 0 additions & 49 deletions .github/scripts/sync-developer-edition-branch.sh

This file was deleted.

49 changes: 0 additions & 49 deletions .github/scripts/sync-features-branch-to-developer-branch.js

This file was deleted.

41 changes: 0 additions & 41 deletions .github/scripts/sync-next-release-to-features-branch.js

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/bump-version/action.yml

This file was deleted.

44 changes: 0 additions & 44 deletions .github/workflows/create-release-branch/action.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/get-next-release-branch/action.yml

This file was deleted.

53 changes: 22 additions & 31 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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 == '' }}
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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 }}
Expand All @@ -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:
Expand Down
Loading

0 comments on commit 7b37a3c

Please sign in to comment.