Merge branch 'feature/34909-marketing-create-campaign-modal' into feature/34904-marketing-introduction-banner
Conflicts: plugins/woocommerce-admin/client/marketing/hooks/index.ts plugins/woocommerce-admin/client/marketing/overview-multichannel/Channels/RecommendedChannels.tsx plugins/woocommerce-admin/client/marketing/overview-multichannel/MarketingOverviewMultichannel.tsx
This commit is contained in:
commit
7c9eedbbb4
33
.codecov.yml
33
.codecov.yml
|
@ -2,20 +2,34 @@ codecov:
|
||||||
notify:
|
notify:
|
||||||
require_ci_to_pass: yes
|
require_ci_to_pass: yes
|
||||||
|
|
||||||
|
ignore:
|
||||||
|
- '**/tests'
|
||||||
|
- '**/test'
|
||||||
|
- 'tools/**'
|
||||||
|
- 'packages/js/admin-e2e-tests'
|
||||||
|
- 'packages/js/api-core-tests'
|
||||||
|
- 'packages/js/create-woo-extension'
|
||||||
|
- 'packages/js/e2e-core-tests'
|
||||||
|
- 'packages/js/e2e-environment'
|
||||||
|
- 'packages/js/e2e-utils'
|
||||||
|
- 'packages/js/eslint-plugin'
|
||||||
|
- 'packages/js/internal-e2e-builds'
|
||||||
|
- 'packages/js/internal-js-tests'
|
||||||
|
- 'packages/js/internal-style-build'
|
||||||
|
- '**/*.test.*'
|
||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
precision: 2
|
precision: 1
|
||||||
round: nearest
|
round: nearest
|
||||||
range: "50...100"
|
range: '50...80'
|
||||||
|
|
||||||
status:
|
status:
|
||||||
project:
|
project:
|
||||||
default:
|
default:
|
||||||
informational: true
|
target: auto
|
||||||
patch:
|
patch:
|
||||||
default:
|
default:
|
||||||
informational: true
|
target: auto
|
||||||
changes: off
|
|
||||||
|
|
||||||
parsers:
|
parsers:
|
||||||
gcov:
|
gcov:
|
||||||
branch_detection:
|
branch_detection:
|
||||||
|
@ -24,4 +38,9 @@ parsers:
|
||||||
method: no
|
method: no
|
||||||
macro: no
|
macro: no
|
||||||
|
|
||||||
comment: false
|
comment:
|
||||||
|
layout: 'reach, diff, flags, files'
|
||||||
|
behavior: default
|
||||||
|
require_changes: false
|
||||||
|
require_base: no
|
||||||
|
require_head: yes
|
||||||
|
|
|
@ -14,15 +14,13 @@
|
||||||
|
|
||||||
Closes # .
|
Closes # .
|
||||||
|
|
||||||
<!-- The next section is mandatory. If your PR doesn't require testing, please indicate that you are purposefully omitting instructions. -->
|
|
||||||
|
|
||||||
- [ ] This PR is a very minor change/addition and does not require testing instructions (if checked you can ignore/remove the next section).
|
|
||||||
|
|
||||||
<!-- Begin testing instructions -->
|
<!-- Begin testing instructions -->
|
||||||
|
|
||||||
### How to test the changes in this Pull Request:
|
### How to test the changes in this Pull Request:
|
||||||
|
|
||||||
<!-- Otherwise, please include detailed instructions on how these changes can be tested (including pre-conditions, configuration, steps to take and expected results). It may help to write your instructions using pseudocode -- as if you're telling a computer how to execute the test. -->
|
<!-- Please include detailed instructions on how these changes can be tested, make sure to review and follow the guide for writing high-quality testing instructions below. -->
|
||||||
|
|
||||||
|
- [ ] Have you followed the [Writing high-quality testing instructions guide](https://github.com/woocommerce/woocommerce/wiki/Writing-high-quality-testing-instructions)?
|
||||||
|
|
||||||
1.
|
1.
|
||||||
2.
|
2.
|
||||||
|
@ -35,6 +33,7 @@ Closes # .
|
||||||
- [ ] Have you added an explanation of what your changes do and why you'd like us to include them?
|
- [ ] Have you added an explanation of what your changes do and why you'd like us to include them?
|
||||||
- [ ] Have you written new tests for your changes, as applicable?
|
- [ ] Have you written new tests for your changes, as applicable?
|
||||||
- [ ] Have you created a changelog file for each project being changed, ie `pnpm --filter=<project> changelog add`?
|
- [ ] Have you created a changelog file for each project being changed, ie `pnpm --filter=<project> changelog add`?
|
||||||
|
- [ ] Have you included testing instructions?
|
||||||
|
|
||||||
<!-- Mark completed items with an [x] -->
|
<!-- Mark completed items with an [x] -->
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
name: Setup WooCommerce Monorepo
|
name: Setup WooCommerce Monorepo
|
||||||
description: Handles the installation, building, and caching of the projects within the monorepo.
|
description: Handles the installation, building, and caching of the projects within the monorepo.
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
install-filters:
|
install-filters:
|
||||||
|
@ -26,26 +27,26 @@ runs:
|
||||||
echo "BUILD_FILTERS=$(node ./.github/actions/setup-woocommerce-monorepo/scripts/parse-input-filter.js '${{ inputs.build-filters }}')" >> $GITHUB_OUTPUT
|
echo "BUILD_FILTERS=$(node ./.github/actions/setup-woocommerce-monorepo/scripts/parse-input-filter.js '${{ inputs.build-filters }}')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Setup PNPM
|
- name: Setup PNPM
|
||||||
uses: pnpm/action-setup@10693b3829bf86eb2572aef5f3571dcf5ca9287d
|
uses: pnpm/action-setup@c3b53f6a16e57305370b4ae5a540c2077a1d50dd
|
||||||
with:
|
with:
|
||||||
version: '^7.13.3'
|
version: '^7.22.0'
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93
|
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
|
||||||
with:
|
with:
|
||||||
node-version-file: .nvmrc
|
node-version-file: .nvmrc
|
||||||
cache: pnpm
|
cache: pnpm
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
|
||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: shivammathur/setup-php@e04e1d97f0c0481c6e1ba40f8a538454fe5d7709
|
uses: shivammathur/setup-php@8e2ac35f639d3e794c1da1f28999385ab6fdf0fc
|
||||||
with:
|
with:
|
||||||
php-version: ${{ inputs.php-version }}
|
php-version: ${{ inputs.php-version }}
|
||||||
coverage: none
|
coverage: none
|
||||||
tools: phpcs, sirbrillig/phpcs-changed
|
tools: phpcs, sirbrillig/phpcs-changed
|
||||||
|
|
||||||
- name: Cache Composer Dependencies
|
- name: Cache Composer Dependencies
|
||||||
uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77
|
uses: actions/cache@58c146cc91c5b9e778e71775dfe9bf1442ad9a12
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/composer/files
|
path: ~/.cache/composer/files
|
||||||
key: ${{ runner.os }}-php-${{ inputs.php-version }}-composer-${{ hashFiles('**/composer.lock') }}
|
key: ${{ runner.os }}-php-${{ inputs.php-version }}-composer-${{ hashFiles('**/composer.lock') }}
|
||||||
|
@ -58,7 +59,7 @@ runs:
|
||||||
pnpm install ${{ steps.parse-input.outputs.INSTALL_FILTERS }}
|
pnpm install ${{ steps.parse-input.outputs.INSTALL_FILTERS }}
|
||||||
|
|
||||||
- name: Cache Build Output
|
- name: Cache Build Output
|
||||||
uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77
|
uses: actions/cache@58c146cc91c5b9e778e71775dfe9bf1442ad9a12
|
||||||
with:
|
with:
|
||||||
path: node_modules/.cache/turbo
|
path: node_modules/.cache/turbo
|
||||||
key: ${{ runner.os }}-build-output-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
|
key: ${{ runner.os }}-build-output-${{ hashFiles('node_modules/.cache/turbo/*-meta.json') }}
|
||||||
|
|
|
@ -6,10 +6,15 @@ on:
|
||||||
description: 'By default the zip file is generated from the branch the workflow runs from, but you can specify an explicit reference to use instead here (e.g. refs/tags/tag_name or refs/heads/release/x.x). The resulting file will be available as an artifact on the workflow run.'
|
description: 'By default the zip file is generated from the branch the workflow runs from, but you can specify an explicit reference to use instead here (e.g. refs/tags/tag_name or refs/heads/release/x.x). The resulting file will be available as an artifact on the workflow run.'
|
||||||
required: false
|
required: false
|
||||||
default: ''
|
default: ''
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build release zip file
|
name: Build release zip file
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
|
|
@ -2,10 +2,15 @@ name: Build release asset
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build release asset
|
name: Build release asset
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,287 @@
|
||||||
|
name: Bump WP L-2 Support
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
releaseBranch:
|
||||||
|
description: Provide the release branch you want to bump the WP L-2 support. Example release/6.9. Note that trunk will also be bumped to match.
|
||||||
|
default: ''
|
||||||
|
required: true
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
|
env:
|
||||||
|
GIT_COMMITTER_NAME: 'WooCommerce Bot'
|
||||||
|
GIT_COMMITTER_EMAIL: 'no-reply@woocommerce.com'
|
||||||
|
GIT_AUTHOR_NAME: 'WooCommerce Bot'
|
||||||
|
GIT_AUTHOR_EMAIL: 'no-reply@woocommerce.com'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check-release-branch-exists:
|
||||||
|
name: Check for existence of release branch
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
steps:
|
||||||
|
- name: Check for release branch
|
||||||
|
id: release-branch-check
|
||||||
|
uses: actions/github-script@v6
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
// This will throw an error for non-200 responses, which prevents subsequent jobs from completing, as desired.
|
||||||
|
await github.request( 'GET /repos/{owner}/{repo}/branches/{branch}', {
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
branch: '${{ inputs.releaseBranch }}',
|
||||||
|
} );
|
||||||
|
|
||||||
|
validate-bump:
|
||||||
|
name: Validate and bump WP L-2 support version
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
needs: check-release-branch-exists
|
||||||
|
if: success()
|
||||||
|
permissions:
|
||||||
|
actions: write
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Get latest WP version
|
||||||
|
id: latestWP
|
||||||
|
uses: actions/github-script@v6
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
const https = require( 'https' );
|
||||||
|
|
||||||
|
https.get( 'https://api.wordpress.org/core/stable-check/1.0/', ( resp ) => {
|
||||||
|
let data = '';
|
||||||
|
|
||||||
|
// A chunk of data has been received.
|
||||||
|
resp.on( 'data', ( chunk ) => {
|
||||||
|
data += chunk;
|
||||||
|
} );
|
||||||
|
|
||||||
|
// The whole response has been received. Print out the result.
|
||||||
|
resp.on( 'end', () => {
|
||||||
|
JSON.parse(data, ( key, val ) => {
|
||||||
|
if ( val === 'latest' ) {
|
||||||
|
core.setOutput( 'version', key )
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
} );
|
||||||
|
|
||||||
|
} ).on( 'error', ( err ) => {
|
||||||
|
console.log( 'Error: ' + err.message );
|
||||||
|
} );
|
||||||
|
|
||||||
|
- name: Get L-2 WP version
|
||||||
|
id: l2Version
|
||||||
|
if: steps.latestWP.outputs.version != '' && steps.latestWP.outputs.version != null
|
||||||
|
uses: actions/github-script@v6
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
const version = "${{ steps.latestWP.outputs.version }}";
|
||||||
|
const latestWPVersionMajor = version.split( '.' )[0];
|
||||||
|
const latestWPVersionMinor = version.split( '.' )[1];
|
||||||
|
const l2 = (parseInt( ( latestWPVersionMajor + latestWPVersionMinor ), 10 ) - 2 ).toString();
|
||||||
|
const l2Major = l2.split( '' )[0];
|
||||||
|
const l2Minor = l2.split( '' )[1];
|
||||||
|
core.setOutput( 'version', l2Major + '.' + l2Minor );
|
||||||
|
|
||||||
|
- name: Git fetch the release branch
|
||||||
|
run: git fetch origin ${{ inputs.releaseBranch }}
|
||||||
|
|
||||||
|
- name: Checkout release branch
|
||||||
|
run: git checkout ${{ inputs.releaseBranch }}
|
||||||
|
|
||||||
|
- name: Create a PR branch based on release branch
|
||||||
|
run: git checkout -b WP-L-2-version-support-${{ steps.l2Version.outputs.version }}/${{ inputs.releaseBranch }}
|
||||||
|
|
||||||
|
- name: Check if WP L-2 support needs to be bumped the release branch
|
||||||
|
id: readmeWPVersion
|
||||||
|
if: steps.l2Version.outputs.version != '' && steps.l2Version.outputs.version != null
|
||||||
|
uses: actions/github-script@v6
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
const fs = require( 'node:fs' );
|
||||||
|
const l2Version = "${{ steps.l2Version.outputs.version }}";
|
||||||
|
let readme = '';
|
||||||
|
|
||||||
|
fs.readFile( './plugins/woocommerce/readme.txt', 'utf-8', function( err, data ) {
|
||||||
|
if ( err ) {
|
||||||
|
console.error( err );
|
||||||
|
}
|
||||||
|
|
||||||
|
readme = data.split( "\n" );
|
||||||
|
const newReadme = [];
|
||||||
|
let needsChange = false;
|
||||||
|
|
||||||
|
for ( const line of readme ) {
|
||||||
|
if ( line.match( /Requires\sat\sleast:\s\d+\.\d/ ) ) {
|
||||||
|
const readmeVersion = line.match( /\d+\.\d/ );
|
||||||
|
|
||||||
|
// If the versions don't match, means we need to make a change.
|
||||||
|
if ( readmeVersion != l2Version ) {
|
||||||
|
needsChange = true;
|
||||||
|
|
||||||
|
newReadme.push( 'Requires at least: ' + l2Version );
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
newReadme.push( line );
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( needsChange ) {
|
||||||
|
fs.writeFile( './plugins/woocommerce/readme.txt', newReadme.join( "\n" ), err => {
|
||||||
|
if ( err ) {
|
||||||
|
core.setFailed( `Unable to bump the WP L-2 support version. ${err}` );
|
||||||
|
}
|
||||||
|
|
||||||
|
core.setOutput( 'needsChange', needsChange );
|
||||||
|
|
||||||
|
// Copy the readme.txt file to the root of VM to be used later.
|
||||||
|
fs.writeFile( '../../readme.txt', newReadme.join( "\n" ), err => {
|
||||||
|
if ( err ) {
|
||||||
|
core.setFailed( `Unable to copy the readme.txt file to the root of VM. ${err}` );
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
} );
|
||||||
|
} else {
|
||||||
|
core.setFailed( 'No changes needed. WP Version is L-2 compatible.' );
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
|
||||||
|
- name: Commit changes
|
||||||
|
if: steps.readmeWPVersion.outputs.needsChange == 'true'
|
||||||
|
run: git commit --no-verify -am "Update readme.txt WP L-2 support version."
|
||||||
|
|
||||||
|
- name: Push changes
|
||||||
|
if: steps.readmeWPVersion.outputs.needsChange == 'true'
|
||||||
|
run: git push origin WP-L-2-version-support-${{ steps.l2Version.outputs.version }}/${{ inputs.releaseBranch }}
|
||||||
|
|
||||||
|
- name: Push the PR up to GitHub
|
||||||
|
id: release-branch-pr
|
||||||
|
if: steps.readmeWPVersion.outputs.needsChange == 'true'
|
||||||
|
uses: actions/github-script@v6
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
const PRBody = "This PR bumps the WP version to L-2 compatible for the release branch ${{ inputs.releaseBranch }}.\n";
|
||||||
|
|
||||||
|
const pr = await github.rest.pulls.create( {
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
title: "Bump WP Version to L-2 compatible for ${{ inputs.releaseBranch }}",
|
||||||
|
head: "WP-L-2-version-support-${{ steps.l2Version.outputs.version }}/${{ inputs.releaseBranch }}",
|
||||||
|
base: "${{ inputs.releaseBranch }}",
|
||||||
|
body: PRBody
|
||||||
|
} );
|
||||||
|
|
||||||
|
if ( pr.status != 201 ) {
|
||||||
|
core.setFailed( "Unable to push WP-L-2-version-support-${{ steps.l2Version.outputs.version }}/${{ inputs.releaseBranch }} to GitHub." );
|
||||||
|
}
|
||||||
|
|
||||||
|
core.setOutput( 'pr', pr.data.number );
|
||||||
|
|
||||||
|
await github.rest.pulls.requestReviewers( {
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
pull_number: pr.data.number,
|
||||||
|
reviewers: [ context.actor ]
|
||||||
|
} );
|
||||||
|
|
||||||
|
- name: Checkout trunk branch
|
||||||
|
if: steps.release-branch-pr.outputs.pr != '' && steps.release-branch-pr.outputs.pr != null
|
||||||
|
run: git checkout trunk
|
||||||
|
|
||||||
|
- name: Create a branch based on trunk branch
|
||||||
|
if: steps.release-branch-pr.outputs.pr != '' && steps.release-branch-pr.outputs.pr != null
|
||||||
|
run: git checkout -b WP-L-2-version-support-${{ steps.l2Version.outputs.version }}/trunk
|
||||||
|
|
||||||
|
- name: Check if WP L-2 support needs to be bumped for trunk
|
||||||
|
id: readmeWPVersionTrunk
|
||||||
|
if: steps.release-branch-pr.outputs.pr != '' && steps.release-branch-pr.outputs.pr != null
|
||||||
|
uses: actions/github-script@v6
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
const fs = require( 'node:fs' );
|
||||||
|
const l2Version = "${{ steps.l2Version.outputs.version }}";
|
||||||
|
let readme = '';
|
||||||
|
|
||||||
|
fs.readFile( './plugins/woocommerce/readme.txt', 'utf-8', function( err, data ) {
|
||||||
|
if ( err ) {
|
||||||
|
console.error( err );
|
||||||
|
}
|
||||||
|
|
||||||
|
readme = data.split( "\n" );
|
||||||
|
const newReadme = [];
|
||||||
|
let needsChange = false;
|
||||||
|
|
||||||
|
for ( const line of readme ) {
|
||||||
|
if ( line.match( /Requires\sat\sleast:\s\d+\.\d/ ) ) {
|
||||||
|
const readmeVersion = line.match( /\d+\.\d/ );
|
||||||
|
|
||||||
|
// If the versions don't match, means we need to make a change.
|
||||||
|
if ( readmeVersion != l2Version ) {
|
||||||
|
needsChange = true;
|
||||||
|
|
||||||
|
newReadme.push( 'Requires at least: ' + l2Version );
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
newReadme.push( line );
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( needsChange ) {
|
||||||
|
fs.writeFile( './plugins/woocommerce/readme.txt', newReadme.join( "\n" ), err => {
|
||||||
|
if ( err ) {
|
||||||
|
core.setFailed( `Unable to bump the WP L-2 support version. ${err}` );
|
||||||
|
}
|
||||||
|
|
||||||
|
core.setOutput( 'needsChange', needsChange );
|
||||||
|
|
||||||
|
// Copy the readme.txt file to the root of VM to be used later.
|
||||||
|
fs.writeFile( '../../readme.txt', newReadme.join( "\n" ), err => {
|
||||||
|
if ( err ) {
|
||||||
|
core.setFailed( `Unable to copy the readme.txt file to the root of VM. ${err}` );
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
} );
|
||||||
|
} else {
|
||||||
|
core.setFailed( 'No changes needed. WP Version is L-2 compatible.' );
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
|
||||||
|
- name: Commit changes
|
||||||
|
if: steps.readmeWPVersionTrunk.outputs.needsChange == 'true'
|
||||||
|
run: git commit --no-verify -am "Update readme.txt WP L-2 support version."
|
||||||
|
|
||||||
|
- name: Push changes
|
||||||
|
if: steps.readmeWPVersionTrunk.outputs.needsChange == 'true'
|
||||||
|
run: git push origin WP-L-2-version-support-${{ steps.l2Version.outputs.version }}/trunk
|
||||||
|
|
||||||
|
- name: Push the PR up to GitHub
|
||||||
|
if: steps.readmeWPVersionTrunk.outputs.needsChange == 'true'
|
||||||
|
uses: actions/github-script@v6
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
const PRBody = "This PR bumps the WP version to L-2 compatible for trunk.\n";
|
||||||
|
|
||||||
|
const pr = await github.rest.pulls.create( {
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
title: "Bump WP Version to L-2 compatible for trunk",
|
||||||
|
head: "WP-L-2-version-support-${{ steps.l2Version.outputs.version }}/trunk",
|
||||||
|
base: "trunk",
|
||||||
|
body: PRBody
|
||||||
|
} );
|
||||||
|
|
||||||
|
if ( pr.status != 201 ) {
|
||||||
|
core.setFailed( "Unable to push WP-L-2-version-support-${{ steps.l2Version.outputs.version }}/trunk to GitHub." );
|
||||||
|
}
|
||||||
|
|
||||||
|
await github.rest.pulls.requestReviewers( {
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
pull_number: pr.data.number,
|
||||||
|
reviewers: [ context.actor ]
|
||||||
|
} );
|
|
@ -15,12 +15,12 @@ on:
|
||||||
default: ''
|
default: ''
|
||||||
required: true
|
required: true
|
||||||
skipSlackPing:
|
skipSlackPing:
|
||||||
description: "Skip Slack Ping: If true, the Slack ping will be skipped (useful for testing)"
|
description: 'Skip Slack Ping: If true, the Slack ping will be skipped (useful for testing)'
|
||||||
type: boolean
|
type: boolean
|
||||||
required: false
|
required: false
|
||||||
default: false
|
default: false
|
||||||
slackChannelOverride:
|
slackChannelOverride:
|
||||||
description: "Slack Channel Override: The channel ID to send the Slack ping about the code freeze violation"
|
description: 'Slack Channel Override: The channel ID to send the Slack ping about the code freeze violation'
|
||||||
required: false
|
required: false
|
||||||
default: ''
|
default: ''
|
||||||
|
|
||||||
|
@ -30,6 +30,8 @@ env:
|
||||||
GIT_AUTHOR_NAME: 'WooCommerce Bot'
|
GIT_AUTHOR_NAME: 'WooCommerce Bot'
|
||||||
GIT_AUTHOR_EMAIL: 'no-reply@woocommerce.com'
|
GIT_AUTHOR_EMAIL: 'no-reply@woocommerce.com'
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
verify:
|
verify:
|
||||||
name: Verify
|
name: Verify
|
||||||
|
@ -53,9 +55,9 @@ jobs:
|
||||||
const isBot = context.payload.pull_request && ( context.payload.pull_request.user.login == 'github-actions[bot]' || context.payload.pull_request.user.type == 'Bot' );
|
const isBot = context.payload.pull_request && ( context.payload.pull_request.user.login == 'github-actions[bot]' || context.payload.pull_request.user.type == 'Bot' );
|
||||||
|
|
||||||
if ( !isBot && ( isManualTrigger || isMergedMilestonedIssue || isMergedMilestonedPR ) ) {
|
if ( !isBot && ( isManualTrigger || isMergedMilestonedIssue || isMergedMilestonedPR ) ) {
|
||||||
console.log( "::set-output name=run::true" );
|
core.setOutput( 'run', 'true' );
|
||||||
} else {
|
} else {
|
||||||
console.log( "::set-output name=run::false" );
|
core.setOutput( 'run', 'false' );
|
||||||
}
|
}
|
||||||
prep:
|
prep:
|
||||||
name: Prep inputs
|
name: Prep inputs
|
||||||
|
@ -77,31 +79,31 @@ jobs:
|
||||||
// Means this workflow was triggered manually.
|
// Means this workflow was triggered manually.
|
||||||
if ( event.inputs && event.inputs.release_branch ) {
|
if ( event.inputs && event.inputs.release_branch ) {
|
||||||
const releaseBranch = '${{ inputs.release_branch }}'
|
const releaseBranch = '${{ inputs.release_branch }}'
|
||||||
const version = releaseBranch.replace( 'release/', '' );
|
const version = releaseBranch.replace( 'release/', '' )
|
||||||
|
|
||||||
console.log( "::set-output name=version::" + version )
|
core.setOutput( 'version', version )
|
||||||
console.log( "::set-output name=release::${{ inputs.release_branch }}" )
|
core.setOutput( 'release', releaseBranch )
|
||||||
} else if ( event.action === 'milestoned' ) {
|
} else if ( event.action === 'milestoned' ) {
|
||||||
const version = '${{ github.event.issue.milestone.title }}'
|
const version = '${{ github.event.issue.milestone.title }}'
|
||||||
const release = version.substring( 0, 3 )
|
const release = version.substring( 0, 3 )
|
||||||
|
|
||||||
console.log( "::set-output name=version::" + version )
|
core.setOutput( 'version', version )
|
||||||
console.log( "::set-output name=release::release/" + release )
|
core.setOutput( 'release', `release/${release}` )
|
||||||
} else {
|
} else {
|
||||||
const version = '${{ github.event.pull_request.milestone.title }}'
|
const version = '${{ github.event.pull_request.milestone.title }}'
|
||||||
const release = version.substring( 0, 3 )
|
const release = version.substring( 0, 3 )
|
||||||
|
|
||||||
console.log( "::set-output name=version::" + version )
|
core.setOutput( 'version', version )
|
||||||
console.log( "::set-output name=release::release/" + release )
|
core.setOutput( 'release', `release/${release}` )
|
||||||
}
|
}
|
||||||
|
|
||||||
// Means this workflow was triggered manually.
|
// Means this workflow was triggered manually.
|
||||||
if ( event.inputs && event.inputs.pull_requests ) {
|
if ( event.inputs && event.inputs.pull_requests ) {
|
||||||
console.log( "::set-output name=pr::${{ inputs.pull_requests }}" )
|
core.setOutput( 'pr', '${{ inputs.pull_requests }}' )
|
||||||
} else if ( event.action === 'milestoned' ) {
|
} else if ( event.action === 'milestoned' ) {
|
||||||
console.log( "::set-output name=pr::${{ github.event.issue.number }}" )
|
core.setOutput( 'pr', '${{ github.event.issue.number }}' )
|
||||||
} else {
|
} else {
|
||||||
console.log( "::set-output name=pr::${{ github.event.pull_request.number }}" )
|
core.setOutput( 'pr', '${{ github.event.pull_request.number }}' )
|
||||||
}
|
}
|
||||||
check-release-branch-exists:
|
check-release-branch-exists:
|
||||||
name: Check for existence of release branch
|
name: Check for existence of release branch
|
||||||
|
@ -122,6 +124,10 @@ jobs:
|
||||||
cherry-pick-run:
|
cherry-pick-run:
|
||||||
name: Run cherry pick tool
|
name: Run cherry pick tool
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
actions: write
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
needs: [prep, check-release-branch-exists]
|
needs: [prep, check-release-branch-exists]
|
||||||
if: success()
|
if: success()
|
||||||
steps:
|
steps:
|
||||||
|
@ -150,11 +156,11 @@ jobs:
|
||||||
pull_number: '${{ needs.prep.outputs.pr }}'
|
pull_number: '${{ needs.prep.outputs.pr }}'
|
||||||
})
|
})
|
||||||
|
|
||||||
console.log( `::set-output name=sha::${ pr.data.merge_commit_sha }` )
|
core.setOutput( 'sha', pr.data.merge_commit_sha )
|
||||||
|
|
||||||
- name: Cherry pick
|
- name: Cherry pick
|
||||||
run: |
|
run: |
|
||||||
git cherry-pick ${{ steps.commit-sha.outputs.sha }}
|
git cherry-pick ${{ steps.commit-sha.outputs.sha }} -m1
|
||||||
|
|
||||||
- name: Generate changelog
|
- name: Generate changelog
|
||||||
id: changelog
|
id: changelog
|
||||||
|
@ -255,7 +261,7 @@ jobs:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log( `::set-output name=changelogsToBeDeleted::${ changelogsToBeDeleted }` )
|
core.setOutput( 'changelogsToBeDeleted', changelogsToBeDeleted.join( ' ' ) )
|
||||||
|
|
||||||
- name: Delete changelog files from cherry pick branch
|
- name: Delete changelog files from cherry pick branch
|
||||||
if: steps.changelog.outputs.changelogsToBeDeleted != '' && steps.changelog.outputs.changelogsToBeDeleted != null
|
if: steps.changelog.outputs.changelogsToBeDeleted != '' && steps.changelog.outputs.changelogsToBeDeleted != null
|
||||||
|
@ -286,7 +292,8 @@ jobs:
|
||||||
body: cherryPickPRBody
|
body: cherryPickPRBody
|
||||||
})
|
})
|
||||||
|
|
||||||
console.log( `::set-output name=cherry-pick-pr::${ pr.data.html_url }` )
|
core.setOutput( 'cherry-pick-pr', pr.data.html_url )
|
||||||
|
|
||||||
- name: Checkout trunk branch
|
- name: Checkout trunk branch
|
||||||
if: steps.changelog.outputs.changelogsToBeDeleted != '' && steps.changelog.outputs.changelogsToBeDeleted != null
|
if: steps.changelog.outputs.changelogsToBeDeleted != '' && steps.changelog.outputs.changelogsToBeDeleted != null
|
||||||
run: git checkout trunk
|
run: git checkout trunk
|
||||||
|
@ -322,7 +329,7 @@ jobs:
|
||||||
body: "Delete changelog files based on PR #${{ needs.prep.outputs.pr }}"
|
body: "Delete changelog files based on PR #${{ needs.prep.outputs.pr }}"
|
||||||
})
|
})
|
||||||
|
|
||||||
console.log( `::set-output name=deletion-pr::${ pr.data.html_url }` )
|
core.setOutput( 'deletion-pr', pr.data.html_url )
|
||||||
|
|
||||||
- name: Notify Slack on failure
|
- name: Notify Slack on failure
|
||||||
if: ${{ failure() && inputs.skipSlackPing != true }}
|
if: ${{ failure() && inputs.skipSlackPing != true }}
|
||||||
|
|
|
@ -12,11 +12,16 @@ defaults:
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
name: PHP ${{ matrix.php }} WP ${{ matrix.wp }}
|
name: PHP ${{ matrix.php }} WP ${{ matrix.wp }}
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
continue-on-error: ${{ matrix.wp == 'nightly' }}
|
continue-on-error: ${{ matrix.wp == 'nightly' }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
|
@ -6,33 +6,41 @@ on:
|
||||||
issues:
|
issues:
|
||||||
types: [opened]
|
types: [opened]
|
||||||
|
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
verify:
|
verify:
|
||||||
name: Verify
|
name: Verify
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: write
|
||||||
|
issues: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93
|
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
|
||||||
|
|
||||||
- name: Install Octokit
|
- name: Install Octokit
|
||||||
run: npm --prefix .github/workflows/scripts install @octokit/action
|
run: npm --prefix .github/workflows/scripts install @octokit/action
|
||||||
|
|
||||||
|
- name: Install Actions Core
|
||||||
|
run: npm --prefix .github/workflows/scripts install @actions/core
|
||||||
|
|
||||||
- name: Check if user is a community contributor
|
- name: Check if user is a community contributor
|
||||||
id: check
|
id: check
|
||||||
run: node .github/workflows/scripts/is-community-contributor.js
|
run: node .github/workflows/scripts/is-community-contributor.js
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: "If community PR, assign a reviewer"
|
- name: 'If community PR, assign a reviewer'
|
||||||
if: github.event.pull_request && steps.check.outputs.is-community == 'yes'
|
if: github.event.pull_request && steps.check.outputs.is-community == 'yes'
|
||||||
uses: shufo/auto-assign-reviewer-by-files@f5f3db9ef06bd72ab6978996988c6462cbdaabf6
|
uses: shufo/auto-assign-reviewer-by-files@f5f3db9ef06bd72ab6978996988c6462cbdaabf6
|
||||||
with:
|
with:
|
||||||
config: ".github/project-community-pr-assigner.yml"
|
config: '.github/project-community-pr-assigner.yml'
|
||||||
token: ${{ secrets.PR_ASSIGN_TOKEN }}
|
token: ${{ secrets.PR_ASSIGN_TOKEN }}
|
||||||
|
|
|
@ -8,10 +8,14 @@ concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cot-e2e-tests-run:
|
cot-e2e-tests-run:
|
||||||
name: Runs E2E tests with COT enabled.
|
name: Runs E2E tests with COT enabled.
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
env:
|
env:
|
||||||
ALLURE_RESULTS_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/allure-results
|
ALLURE_RESULTS_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/allure-results
|
||||||
ALLURE_REPORT_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/allure-report
|
ALLURE_REPORT_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/allure-report
|
||||||
|
@ -66,6 +70,8 @@ jobs:
|
||||||
cot-api-tests-run:
|
cot-api-tests-run:
|
||||||
name: Runs API tests with COT enabled.
|
name: Runs API tests with COT enabled.
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
env:
|
env:
|
||||||
ALLURE_RESULTS_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/api-core-tests/api-test-report/allure-results
|
ALLURE_RESULTS_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/api-core-tests/api-test-report/allure-results
|
||||||
ALLURE_REPORT_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/api-core-tests/api-test-report/allure-report
|
ALLURE_REPORT_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/api-core-tests/api-test-report/allure-report
|
||||||
|
@ -124,6 +130,8 @@ jobs:
|
||||||
contains( needs.*.result, 'failure' )
|
contains( needs.*.result, 'failure' )
|
||||||
)
|
)
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
needs: [cot-api-tests-run, cot-e2e-tests-run]
|
needs: [cot-api-tests-run, cot-e2e-tests-run]
|
||||||
steps:
|
steps:
|
||||||
- name: Create dirs
|
- name: Create dirs
|
||||||
|
|
|
@ -1,18 +1,20 @@
|
||||||
name: Run tests against PR in an environment with COT enabled
|
name: Run tests against PR in an environment with COT enabled
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [labeled]
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cot-e2e-tests-run:
|
cot-e2e-tests-run:
|
||||||
name: Runs E2E tests with COT enabled.
|
name: Runs E2E tests with COT enabled.
|
||||||
if: "${{ github.event_name == 'workflow_dispatch' || github.event.label.name == 'focus: custom order tables' }}"
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
env:
|
env:
|
||||||
ALLURE_RESULTS_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/allure-results
|
ALLURE_RESULTS_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/allure-results
|
||||||
ALLURE_REPORT_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/allure-report
|
ALLURE_REPORT_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/allure-report
|
||||||
|
@ -66,8 +68,9 @@ jobs:
|
||||||
|
|
||||||
cot-api-tests-run:
|
cot-api-tests-run:
|
||||||
name: Runs API tests with COT enabled.
|
name: Runs API tests with COT enabled.
|
||||||
if: "${{ github.event_name == 'workflow_dispatch' || github.event.label.name == 'focus: custom order tables' }}"
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
env:
|
env:
|
||||||
ALLURE_RESULTS_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/api-core-tests/api-test-report/allure-results
|
ALLURE_RESULTS_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/api-core-tests/api-test-report/allure-results
|
||||||
ALLURE_REPORT_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/api-core-tests/api-test-report/allure-report
|
ALLURE_REPORT_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/api-core-tests/api-test-report/allure-report
|
||||||
|
@ -115,100 +118,3 @@ jobs:
|
||||||
${{ env.ALLURE_REPORT_DIR }}
|
${{ env.ALLURE_REPORT_DIR }}
|
||||||
if-no-files-found: ignore
|
if-no-files-found: ignore
|
||||||
retention-days: 5
|
retention-days: 5
|
||||||
|
|
||||||
test-summary:
|
|
||||||
name: Post test results
|
|
||||||
if: |
|
|
||||||
always() &&
|
|
||||||
! github.event.pull_request.head.repo.fork &&
|
|
||||||
(
|
|
||||||
contains( needs.*.result, 'success' ) ||
|
|
||||||
contains( needs.*.result, 'failure' )
|
|
||||||
)
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
needs: [cot-api-tests-run, cot-e2e-tests-run]
|
|
||||||
steps:
|
|
||||||
- name: Create dirs
|
|
||||||
run: |
|
|
||||||
mkdir -p repo
|
|
||||||
mkdir -p artifacts/api
|
|
||||||
mkdir -p artifacts/e2e
|
|
||||||
mkdir -p output
|
|
||||||
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
path: repo
|
|
||||||
|
|
||||||
- name: Download API test report artifact
|
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: api-test-report---pr-${{ github.event.number }}
|
|
||||||
path: artifacts/api
|
|
||||||
|
|
||||||
- name: Download Playwright E2E test report artifact
|
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: e2e-test-report---pr-${{ github.event.number }}
|
|
||||||
path: artifacts/e2e
|
|
||||||
|
|
||||||
- name: Prepare test summary
|
|
||||||
id: prepare-test-summary
|
|
||||||
uses: actions/github-script@v6
|
|
||||||
env:
|
|
||||||
API_SUMMARY_PATH: ${{ github.workspace }}/artifacts/api/allure-report/widgets/summary.json
|
|
||||||
E2E_PW_SUMMARY_PATH: ${{ github.workspace }}/artifacts/e2e/allure-report/widgets/summary.json
|
|
||||||
PR_NUMBER: ${{ github.event.number }}
|
|
||||||
SHA: ${{ github.event.pull_request.head.sha }}
|
|
||||||
with:
|
|
||||||
result-encoding: string
|
|
||||||
script: |
|
|
||||||
const script = require( './repo/.github/workflows/scripts/prepare-test-summary.js' )
|
|
||||||
return await script( { core } )
|
|
||||||
|
|
||||||
- name: Find PR comment by github-actions[bot]
|
|
||||||
uses: peter-evans/find-comment@v2
|
|
||||||
id: find-comment
|
|
||||||
with:
|
|
||||||
issue-number: ${{ github.event.pull_request.number }}
|
|
||||||
comment-author: 'github-actions[bot]'
|
|
||||||
body-includes: Test Results Summary
|
|
||||||
|
|
||||||
- name: Create or update PR comment
|
|
||||||
uses: peter-evans/create-or-update-comment@v2
|
|
||||||
with:
|
|
||||||
comment-id: ${{ steps.find-comment.outputs.comment-id }}
|
|
||||||
issue-number: ${{ github.event.pull_request.number }}
|
|
||||||
body: ${{ steps.prepare-test-summary.outputs.result }}
|
|
||||||
edit-mode: replace
|
|
||||||
|
|
||||||
publish-test-reports:
|
|
||||||
name: Publish test reports
|
|
||||||
if: |
|
|
||||||
always() &&
|
|
||||||
! github.event.pull_request.head.repo.fork &&
|
|
||||||
(
|
|
||||||
contains( needs.*.result, 'success' ) ||
|
|
||||||
contains( needs.*.result, 'failure' )
|
|
||||||
)
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
needs: [cot-api-tests-run, cot-e2e-tests-run]
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.REPORTS_TOKEN }}
|
|
||||||
PR_NUMBER: ${{ github.event.number }}
|
|
||||||
RUN_ID: ${{ github.run_id }}
|
|
||||||
COMMIT_SHA: ${{ github.event.pull_request.head.sha }}
|
|
||||||
steps:
|
|
||||||
- name: Publish test reports
|
|
||||||
env:
|
|
||||||
API_ARTIFACT: api-test-report---pr-${{ github.event.number }}
|
|
||||||
E2E_ARTIFACT: e2e-test-report---pr-${{ github.event.number }}
|
|
||||||
run: |
|
|
||||||
gh workflow run publish-test-reports-pr.yml \
|
|
||||||
-f run_id=$RUN_ID \
|
|
||||||
-f api_artifact=$API_ARTIFACT \
|
|
||||||
-f e2e_artifact=$E2E_ARTIFACT \
|
|
||||||
-f pr_number=$PR_NUMBER \
|
|
||||||
-f commit_sha=$COMMIT_SHA \
|
|
||||||
-f s3_root=public \
|
|
||||||
--repo woocommerce/woocommerce-test-reports
|
|
||||||
|
|
|
@ -4,11 +4,15 @@ on:
|
||||||
branches: ["trunk", "release/**"]
|
branches: ["trunk", "release/**"]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
if: github.repository == 'woocommerce/woocommerce'
|
if: github.repository == 'woocommerce/woocommerce'
|
||||||
name: Build WooCommerce zip
|
name: Build WooCommerce zip
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
@ -35,6 +39,8 @@ jobs:
|
||||||
name: Push to Mirror
|
name: Push to Mirror
|
||||||
needs: [build]
|
needs: [build]
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
- name: Create directories
|
- name: Create directories
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -3,6 +3,9 @@ on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * *' # Run at 12 AM UTC.
|
- cron: '0 0 * * *' # Run at 12 AM UTC.
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
if: github.repository_owner == 'woocommerce'
|
if: github.repository_owner == 'woocommerce'
|
||||||
|
@ -12,6 +15,8 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
build: [trunk]
|
build: [trunk]
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
@ -40,6 +45,8 @@ jobs:
|
||||||
update:
|
update:
|
||||||
name: Update nightly tag commit ref
|
name: Update nightly tag commit ref
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Update nightly tag
|
- name: Update nightly tag
|
||||||
uses: richardsimko/github-tag-action@v1.0.5
|
uses: richardsimko/github-tag-action@v1.0.5
|
||||||
|
|
|
@ -6,10 +6,15 @@ on:
|
||||||
description: 'Enter a specific package to release, or releases separated by commas, ie @woocommerce/components,@woocommerce/number. Leaving this input blank will release all eligible packages.'
|
description: 'Enter a specific package to release, or releases separated by commas, ie @woocommerce/components,@woocommerce/number. Leaving this input blank will release all eligible packages.'
|
||||||
required: false
|
required: false
|
||||||
default: '-a'
|
default: '-a'
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
name: Run packages release script
|
name: Run packages release script
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
|
|
@ -9,10 +9,15 @@ env:
|
||||||
GIT_AUTHOR_NAME: 'WooCommerce Bot'
|
GIT_AUTHOR_NAME: 'WooCommerce Bot'
|
||||||
GIT_AUTHOR_EMAIL: 'no-reply@woocommerce.com'
|
GIT_AUTHOR_EMAIL: 'no-reply@woocommerce.com'
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
changelog-version-update:
|
changelog-version-update:
|
||||||
name: Update changelog and version
|
name: Update changelog and version
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
@ -48,10 +53,10 @@ jobs:
|
||||||
// If the release version is less than stable version we can bail.
|
// If the release version is less than stable version we can bail.
|
||||||
if ( version.localeCompare( stableVersion, undefined, { numeric: true, sensitivity: 'base' } ) == -1 ) {
|
if ( version.localeCompare( stableVersion, undefined, { numeric: true, sensitivity: 'base' } ) == -1 ) {
|
||||||
console.log( 'Release version is less than stable version. No automated action taken. A manual process is required.' );
|
console.log( 'Release version is less than stable version. No automated action taken. A manual process is required.' );
|
||||||
console.log( `::set-output name=continue::false` )
|
core.setOutput( 'continue', 'false' )
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
console.log( `::set-output name=continue::true` )
|
core.setOutput( 'continue', 'true' )
|
||||||
}
|
}
|
||||||
} )
|
} )
|
||||||
|
|
||||||
|
@ -67,7 +72,7 @@ jobs:
|
||||||
// Read the saved readme.txt file from earlier.
|
// Read the saved readme.txt file from earlier.
|
||||||
fs.readFile( '../../readme.txt', 'utf-8', function( err, readme ) {
|
fs.readFile( '../../readme.txt', 'utf-8', function( err, readme ) {
|
||||||
if ( err ) {
|
if ( err ) {
|
||||||
console.log( `::set-output name=continue::false` )
|
core.setOutput( 'continue', 'false' );
|
||||||
console.error( err );
|
console.error( err );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,7 +82,7 @@ jobs:
|
||||||
|
|
||||||
fs.readFile( './changelog.txt', 'utf-8', function( err, changelog ) {
|
fs.readFile( './changelog.txt', 'utf-8', function( err, changelog ) {
|
||||||
if ( err ) {
|
if ( err ) {
|
||||||
console.log( `::set-output name=continue::false` )
|
core.setOutput( 'continue', 'false' );
|
||||||
console.error( err );
|
console.error( err );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -87,11 +92,11 @@ jobs:
|
||||||
|
|
||||||
fs.writeFile( './changelog.txt', updatedChangelog, err => {
|
fs.writeFile( './changelog.txt', updatedChangelog, err => {
|
||||||
if ( err ) {
|
if ( err ) {
|
||||||
console.log( `::set-output name=continue::false` )
|
core.setOutput( 'continue', 'false' );
|
||||||
console.error( 'Unable to update changelog entries in changelog.txt' );
|
console.error( 'Unable to update changelog entries in changelog.txt' );
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log( `::set-output name=continue::true` )
|
core.setOutput( 'continue', 'true' );
|
||||||
} )
|
} )
|
||||||
} )
|
} )
|
||||||
} )
|
} )
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
# Duplicate workflow that returns success for this check when there is no relevant file change. See https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks
|
||||||
|
name: Run tests against PR
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- '!**'
|
||||||
|
- '**/changelog/**'
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: 'echo "No build required"'
|
|
@ -1,19 +1,25 @@
|
||||||
name: Run tests against PR
|
name: Run tests against PR
|
||||||
on:
|
on:
|
||||||
pull_request:
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- '**/changelog/**'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
e2e-tests-run:
|
e2e-tests-run:
|
||||||
name: Runs E2E tests.
|
name: Runs E2E tests.
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
env:
|
env:
|
||||||
ALLURE_RESULTS_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/allure-results
|
ALLURE_RESULTS_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/test-results/allure-results
|
||||||
ALLURE_REPORT_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/allure-report
|
ALLURE_REPORT_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/test-results/allure-report
|
||||||
outputs:
|
outputs:
|
||||||
E2E_GRAND_TOTAL: ${{ steps.count_e2e_total.outputs.E2E_GRAND_TOTAL }}
|
E2E_GRAND_TOTAL: ${{ steps.count_e2e_total.outputs.E2E_GRAND_TOTAL }}
|
||||||
steps:
|
steps:
|
||||||
|
@ -79,9 +85,11 @@ jobs:
|
||||||
api-tests-run:
|
api-tests-run:
|
||||||
name: Runs API tests.
|
name: Runs API tests.
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
env:
|
env:
|
||||||
ALLURE_RESULTS_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/api-core-tests/api-test-report/allure-results
|
ALLURE_RESULTS_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/api-core-tests/test-results/allure-results
|
||||||
ALLURE_REPORT_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/api-core-tests/api-test-report/allure-report
|
ALLURE_REPORT_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/api-core-tests/test-results/allure-report
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
@ -129,6 +137,8 @@ jobs:
|
||||||
k6-tests-run:
|
k6-tests-run:
|
||||||
name: Runs k6 Performance tests
|
name: Runs k6 Performance tests
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
@ -162,6 +172,10 @@ jobs:
|
||||||
)
|
)
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
needs: [api-tests-run, e2e-tests-run]
|
needs: [api-tests-run, e2e-tests-run]
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
env:
|
env:
|
||||||
E2E_GRAND_TOTAL: ${{needs.e2e-tests-run.outputs.E2E_GRAND_TOTAL}}
|
E2E_GRAND_TOTAL: ${{needs.e2e-tests-run.outputs.E2E_GRAND_TOTAL}}
|
||||||
steps:
|
steps:
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
# Duplicate workflow that returns success for this check when there is no relevant file change. See https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks
|
||||||
|
name: Build Live Branch
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- '!**'
|
||||||
|
- '**/changelog/**'
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: 'echo "No build required"'
|
|
@ -1,16 +1,22 @@
|
||||||
name: Build Live Branch
|
name: Build Live Branch
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- '**/changelog/**'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
# Cancel concurrent jobs on pull_request but not push, by including the run_id in the concurrency group for the latter.
|
# Cancel concurrent jobs on pull_request but not push, by including the run_id in the concurrency group for the latter.
|
||||||
group: build-${{ github.event_name == 'push' && github.run_id || 'pr' }}-${{ github.ref }}
|
group: build-${{ github.event_name == 'push' && github.run_id || 'pr' }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
if: github.repository_owner == 'woocommerce'
|
if: github.repository_owner == 'woocommerce'
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
# Duplicate workflow that returns success for this check when there is no relevant file change. See https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks
|
||||||
|
name: Run code coverage on PR
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- '!**'
|
||||||
|
- '**/changelog/**'
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: 'echo "No build required"'
|
|
@ -1,6 +1,8 @@
|
||||||
name: Run code coverage on PR
|
name: Run code coverage on PR
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- '**/changelog/**'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
|
@ -8,11 +10,16 @@ defaults:
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
name: Code coverage (PHP 7.4, WP Latest)
|
name: Code coverage (PHP 7.4, WP Latest)
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
services:
|
services:
|
||||||
database:
|
database:
|
||||||
image: mysql:5.6
|
image: mysql:5.6
|
||||||
|
@ -36,8 +43,7 @@ jobs:
|
||||||
|
|
||||||
- name: Build Admin feature config
|
- name: Build Admin feature config
|
||||||
working-directory: plugins/woocommerce
|
working-directory: plugins/woocommerce
|
||||||
run:
|
run: pnpm run build:feature-config
|
||||||
pnpm run build:feature-config
|
|
||||||
|
|
||||||
- name: Init DB and WP
|
- name: Init DB and WP
|
||||||
working-directory: plugins/woocommerce
|
working-directory: plugins/woocommerce
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
# Duplicate workflow that returns success for this check when there is no relevant file change. See https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks
|
||||||
|
name: Run code coverage on PR
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- '!**'
|
||||||
|
- '**/changelog/**'
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: 'echo "No build required"'
|
|
@ -1,5 +1,8 @@
|
||||||
name: Run code sniff on PR
|
name: Run code sniff on PR
|
||||||
on: pull_request
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- '**/changelog/**'
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -8,11 +11,16 @@ concurrency:
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
env:
|
env:
|
||||||
PHPCS: ./plugins/woocommerce/vendor/bin/phpcs # Run WooCommerce phpcs setup in phpcs-changed instead of default
|
PHPCS: ./plugins/woocommerce/vendor/bin/phpcs # Run WooCommerce phpcs setup in phpcs-changed instead of default
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
name: Code sniff (PHP 7.4, WP Latest)
|
name: Code sniff (PHP 7.4, WP Latest)
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
# Duplicate workflow that returns success for this check when there is no relevant file change. See https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks
|
||||||
|
name: Highlight templates changes
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- '!**'
|
||||||
|
- '**/changelog/**'
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: 'echo "No build required"'
|
|
@ -1,9 +1,17 @@
|
||||||
name: Highlight templates changes
|
name: Highlight templates changes
|
||||||
on: pull_request
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- '**/changelog/**'
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
analyze:
|
analyze:
|
||||||
name: Check pull request changes to highlight
|
name: Check pull request changes to highlight
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
outputs:
|
outputs:
|
||||||
results: ${{ steps.results.outputs.results }}
|
results: ${{ steps.results.outputs.results }}
|
||||||
steps:
|
steps:
|
||||||
|
|
|
@ -6,10 +6,15 @@ on:
|
||||||
concurrency:
|
concurrency:
|
||||||
group: changelogger-${{ github.event_name }}-${{ github.ref }}
|
group: changelogger-${{ github.event_name }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
changelogger_used:
|
changelogger_used:
|
||||||
name: Changelogger use
|
name: Changelogger use
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
|
@ -1,14 +1,21 @@
|
||||||
name: Lint and tests for JS packages and woocommerce-admin/client
|
name: Lint and tests for JS packages and woocommerce-admin/client
|
||||||
|
|
||||||
on: pull_request
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- '**/changelog/**'
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint-test-js:
|
lint-test-js:
|
||||||
name: Lint and Test JS
|
name: Lint and Test JS
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
@ -16,7 +23,7 @@ jobs:
|
||||||
uses: ./.github/actions/setup-woocommerce-monorepo
|
uses: ./.github/actions/setup-woocommerce-monorepo
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: pnpm run -r --filter='woocommerce/client/admin...' --filter='!@woocommerce/e2e*' --filter='!@woocommerce/api' --color lint
|
run: pnpm run -r --filter='release-posts' --filter='woocommerce/client/admin...' --filter='!@woocommerce/e2e*' --filter='!@woocommerce/api' --color lint
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: pnpm run test --filter='woocommerce/client/admin...' --filter='!@woocommerce/e2e*' --filter='!@woocommerce/api' --color
|
run: pnpm run test --filter='woocommerce/client/admin...' --filter='!@woocommerce/e2e*' --filter='!@woocommerce/api' --color
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
# Duplicate workflow that returns success for this check when there is no relevant file change. See https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks
|
||||||
|
name: Run smoke tests against pull request.
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- '!**'
|
||||||
|
- '**/changelog/**'
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: 'echo "No build required"'
|
|
@ -8,11 +8,16 @@ concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
label_project:
|
label_project:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/labeler@v3
|
- uses: actions/labeler@v3
|
||||||
with:
|
with:
|
||||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
repo-token: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
configuration-path: .github/project-pr-labeler.yml
|
configuration-path: .github/project-pr-labeler.yml
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
# Duplicate workflow that returns success for this check when there is no relevant file change. See https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks
|
||||||
|
name: Lint and tests for JS packages and woocommerce-admin/client
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- '!**'
|
||||||
|
- '**/changelog/**'
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: 'echo "No build required"'
|
|
@ -1,6 +1,8 @@
|
||||||
name: Run smoke tests against pull request.
|
name: Run smoke tests against pull request.
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- '**/changelog/**'
|
||||||
branches:
|
branches:
|
||||||
- trunk
|
- trunk
|
||||||
types:
|
types:
|
||||||
|
@ -9,11 +11,16 @@ concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prcheck:
|
prcheck:
|
||||||
name: Smoke test a pull request.
|
name: Smoke test a pull request.
|
||||||
if: "${{ contains(github.event.label.name, 'run: smoke tests') }}"
|
if: "${{ contains(github.event.label.name, 'run: smoke tests') }}"
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
# Duplicate workflow that returns success for this check when there is no relevant file change. See https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks
|
||||||
|
name: Run unit tests on PR
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- '!**'
|
||||||
|
- '**/changelog/**'
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: 'echo "No build required"'
|
|
@ -1,6 +1,8 @@
|
||||||
name: Run unit tests on PR
|
name: Run unit tests on PR
|
||||||
on:
|
on:
|
||||||
pull_request
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- '**/changelog/**'
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -8,11 +10,15 @@ concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
name: PHP ${{ matrix.php }} WP ${{ matrix.wp }}
|
name: PHP ${{ matrix.php }} WP ${{ matrix.wp }}
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
continue-on-error: ${{ matrix.wp == 'nightly' }}
|
continue-on-error: ${{ matrix.wp == 'nightly' }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
@ -22,9 +28,9 @@ jobs:
|
||||||
include:
|
include:
|
||||||
- wp: nightly
|
- wp: nightly
|
||||||
php: '7.4'
|
php: '7.4'
|
||||||
- wp: '5.9'
|
- wp: '6.0'
|
||||||
php: 7.4
|
php: 7.4
|
||||||
- wp: '5.8'
|
- wp: '5.9'
|
||||||
php: 7.4
|
php: 7.4
|
||||||
services:
|
services:
|
||||||
database:
|
database:
|
||||||
|
@ -47,19 +53,6 @@ jobs:
|
||||||
php --version
|
php --version
|
||||||
composer --version
|
composer --version
|
||||||
|
|
||||||
- name: Add PHP8 Compatibility.
|
|
||||||
run: |
|
|
||||||
if [ "$(php -r "echo version_compare(PHP_VERSION,'8.0','>=');")" ]; then
|
|
||||||
cd plugins/woocommerce
|
|
||||||
curl -L https://github.com/woocommerce/phpunit/archive/add-compatibility-with-php8-to-phpunit-7.zip -o /tmp/phpunit-7.5-fork.zip
|
|
||||||
unzip -d /tmp/phpunit-7.5-fork /tmp/phpunit-7.5-fork.zip
|
|
||||||
composer bin phpunit config --unset platform
|
|
||||||
composer bin phpunit config repositories.0 '{"type": "path", "url": "/tmp/phpunit-7.5-fork/phpunit-add-compatibility-with-php8-to-phpunit-7", "options": {"symlink": false}}'
|
|
||||||
composer bin phpunit require --dev -W phpunit/phpunit:@dev --ignore-platform-reqs
|
|
||||||
rm -rf ./vendor/phpunit/
|
|
||||||
composer dump-autoload
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Init DB and WP
|
- name: Init DB and WP
|
||||||
working-directory: plugins/woocommerce
|
working-directory: plugins/woocommerce
|
||||||
run: ./tests/bin/install.sh woo_test root root 127.0.0.1 ${{ matrix.wp }}
|
run: ./tests/bin/install.sh woo_test root root 127.0.0.1 ${{ matrix.wp }}
|
||||||
|
|
|
@ -3,13 +3,19 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
packages:
|
packages:
|
||||||
description: 'Enter a specific package to release, or packages separated by commas, ie @woocommerce/components,@woocommerce/number. Leaving this input to the default "-a" will prepare to release all eligible packages.'
|
description: 'Enter a specific package to release, or packages separated by commas, ie @woocommerce/components,@woocommerce/number. Leaving this input to the default "-a" will prepare to release all eligible packages. When releasing a package for the first time, pass the "--initialRelease" flag.'
|
||||||
required: false
|
required: false
|
||||||
default: '-a'
|
default: '-a'
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prepare:
|
prepare:
|
||||||
name: Run prepare script
|
name: Run prepare script
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
|
|
@ -9,10 +9,14 @@ concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prime:
|
prime:
|
||||||
name: Prime cache
|
name: Prime cache
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,23 @@
|
||||||
name: "Pull request post-merge processing"
|
name: 'Pull request post-merge processing'
|
||||||
on:
|
on:
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
types: [closed]
|
types: [closed]
|
||||||
|
paths:
|
||||||
|
- 'packages/**'
|
||||||
|
- 'plugins/woocommerce/**'
|
||||||
|
- 'plugins/woocommerce-admin/**'
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
process-pull-request-after-merge:
|
process-pull-request-after-merge:
|
||||||
name: "Process a pull request after it's merged"
|
name: "Process a pull request after it's merged"
|
||||||
if: github.event.pull_request.merged == true
|
if: github.event.pull_request.merged == true
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
- name: "Get the action scripts"
|
- name: 'Get the action scripts'
|
||||||
run: |
|
run: |
|
||||||
scripts="assign-milestone-to-merged-pr.php add-post-merge-comment.php post-request-shared.php"
|
scripts="assign-milestone-to-merged-pr.php add-post-merge-comment.php post-request-shared.php"
|
||||||
for script in $scripts
|
for script in $scripts
|
||||||
|
@ -25,11 +33,11 @@ jobs:
|
||||||
done
|
done
|
||||||
env:
|
env:
|
||||||
GITHUB_API_URL: ${{ env.GITHUB_API_URL }}
|
GITHUB_API_URL: ${{ env.GITHUB_API_URL }}
|
||||||
- name: "Install PHP"
|
- name: 'Install PHP'
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@8e2ac35f639d3e794c1da1f28999385ab6fdf0fc
|
||||||
with:
|
with:
|
||||||
php-version: '7.4'
|
php-version: '7.4'
|
||||||
- name: "Run the script to assign a milestone"
|
- name: 'Run the script to assign a milestone'
|
||||||
if: |
|
if: |
|
||||||
!github.event.pull_request.milestone &&
|
!github.event.pull_request.milestone &&
|
||||||
github.event.pull_request.base.ref == 'trunk'
|
github.event.pull_request.base.ref == 'trunk'
|
||||||
|
|
|
@ -15,9 +15,14 @@ env:
|
||||||
GIT_AUTHOR_NAME: 'WooCommerce Bot'
|
GIT_AUTHOR_NAME: 'WooCommerce Bot'
|
||||||
GIT_AUTHOR_EMAIL: 'no-reply@woocommerce.com'
|
GIT_AUTHOR_EMAIL: 'no-reply@woocommerce.com'
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
create-changelog-prs:
|
create-changelog-prs:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
@ -41,6 +46,9 @@ jobs:
|
||||||
- name: 'Generate the changelog file'
|
- name: 'Generate the changelog file'
|
||||||
run: pnpm --filter=woocommerce run changelog write --add-pr-num -n -vvv --use-version ${{ inputs.releaseVersion }}
|
run: pnpm --filter=woocommerce run changelog write --add-pr-num -n -vvv --use-version ${{ inputs.releaseVersion }}
|
||||||
|
|
||||||
|
- name: Checkout pnpm-lock.yaml to prevent issues
|
||||||
|
run: git checkout pnpm-lock.yaml
|
||||||
|
|
||||||
- name: 'git rm deleted files'
|
- name: 'git rm deleted files'
|
||||||
run: git rm $(git ls-files --deleted)
|
run: git rm $(git ls-files --deleted)
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
name: 'Release: Code freeze'
|
name: 'Release: Code freeze'
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 16 * * 4' # Run at 1600 UTC on Thursdays.
|
- cron: '0 23 * * 1' # Run at 2300 UTC on Mondays.
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
timeOverride:
|
timeOverride:
|
||||||
|
@ -20,6 +20,8 @@ env:
|
||||||
GIT_AUTHOR_NAME: 'WooCommerce Bot'
|
GIT_AUTHOR_NAME: 'WooCommerce Bot'
|
||||||
GIT_AUTHOR_EMAIL: 'no-reply@woocommerce.com'
|
GIT_AUTHOR_EMAIL: 'no-reply@woocommerce.com'
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
verify-code-freeze:
|
verify-code-freeze:
|
||||||
name: 'Verify that today is the day of the code freeze'
|
name: 'Verify that today is the day of the code freeze'
|
||||||
|
@ -28,7 +30,7 @@ jobs:
|
||||||
freeze: ${{ steps.check-freeze.outputs.freeze }}
|
freeze: ${{ steps.check-freeze.outputs.freeze }}
|
||||||
steps:
|
steps:
|
||||||
- name: 'Install PHP'
|
- name: 'Install PHP'
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@8e2ac35f639d3e794c1da1f28999385ab6fdf0fc
|
||||||
with:
|
with:
|
||||||
php-version: '7.4'
|
php-version: '7.4'
|
||||||
|
|
||||||
|
@ -42,12 +44,12 @@ jobs:
|
||||||
$now = strtotime( getenv( 'TIME_OVERRIDE' ) );
|
$now = strtotime( getenv( 'TIME_OVERRIDE' ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Code freeze comes 26 days prior to release day.
|
// Code freeze comes 22 days prior to release day.
|
||||||
$release_time = strtotime( '+26 days', $now );
|
$release_time = strtotime( '+22 days', $now );
|
||||||
$release_day_of_week = date( 'l', $release_time );
|
$release_day_of_week = date( 'l', $release_time );
|
||||||
$release_day_of_month = (int) date( 'j', $release_time );
|
$release_day_of_month = (int) date( 'j', $release_time );
|
||||||
|
|
||||||
// If 26 days from now isn't the second Tuesday, then it's not code freeze day.
|
// If 22 days from now isn't the second Tuesday, then it's not code freeze day.
|
||||||
if ( 'Tuesday' !== $release_day_of_week || $release_day_of_month < 8 || $release_day_of_month > 14 ) {
|
if ( 'Tuesday' !== $release_day_of_week || $release_day_of_month < 8 || $release_day_of_month > 14 ) {
|
||||||
file_put_contents( getenv( 'GITHUB_OUTPUT' ), "freeze=1\n", FILE_APPEND );
|
file_put_contents( getenv( 'GITHUB_OUTPUT' ), "freeze=1\n", FILE_APPEND );
|
||||||
} else {
|
} else {
|
||||||
|
@ -57,6 +59,9 @@ jobs:
|
||||||
maybe-create-next-milestone-and-release-branch:
|
maybe-create-next-milestone-and-release-branch:
|
||||||
name: 'Maybe create next milestone and release branch'
|
name: 'Maybe create next milestone and release branch'
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
issues: write
|
||||||
needs: verify-code-freeze
|
needs: verify-code-freeze
|
||||||
if: needs.verify-code-freeze.outputs.freeze == 0
|
if: needs.verify-code-freeze.outputs.freeze == 0
|
||||||
outputs:
|
outputs:
|
||||||
|
@ -84,6 +89,9 @@ jobs:
|
||||||
prep-trunk:
|
prep-trunk:
|
||||||
name: Preps trunk for next development cycle
|
name: Preps trunk for next development cycle
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
needs: maybe-create-next-milestone-and-release-branch
|
needs: maybe-create-next-milestone-and-release-branch
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
@ -151,6 +159,8 @@ jobs:
|
||||||
trigger-changelog-action:
|
trigger-changelog-action:
|
||||||
name: 'Trigger changelog action'
|
name: 'Trigger changelog action'
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
actions: write
|
||||||
needs: maybe-create-next-milestone-and-release-branch
|
needs: maybe-create-next-milestone-and-release-branch
|
||||||
steps:
|
steps:
|
||||||
- name: 'Trigger changelog action'
|
- name: 'Trigger changelog action'
|
||||||
|
@ -163,7 +173,7 @@ jobs:
|
||||||
workflow_id: 'release-changelog.yml',
|
workflow_id: 'release-changelog.yml',
|
||||||
ref: 'trunk',
|
ref: 'trunk',
|
||||||
inputs: {
|
inputs: {
|
||||||
releaseVersion: "release/${{ needs.maybe-create-next-milestone-and-release-branch.outputs.next_version }}",
|
releaseVersion: "${{ needs.maybe-create-next-milestone-and-release-branch.outputs.release_version }}",
|
||||||
releaseBranch: "${{ needs.maybe-create-next-milestone-and-release-branch.outputs.next_version }}"
|
releaseBranch: "${{ needs.maybe-create-next-milestone-and-release-branch.outputs.branch }}"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -0,0 +1,34 @@
|
||||||
|
name: WooCommerce Beta Tester Release
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
version:
|
||||||
|
description: 'The version number for the release'
|
||||||
|
required: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
name: Run release scripts
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup WooCommerce Monorepo
|
||||||
|
uses: ./.github/actions/setup-woocommerce-monorepo
|
||||||
|
|
||||||
|
- name: Build WooCommerce Beta Tester Zip
|
||||||
|
working-directory: plugins/woocommerce-beta-tester
|
||||||
|
run: pnpm build:zip
|
||||||
|
|
||||||
|
- name: Create release
|
||||||
|
id: create_release
|
||||||
|
uses: woocommerce/action-gh-release@master
|
||||||
|
with:
|
||||||
|
tag_name: wc-beta-tester-${{ inputs.version }}
|
||||||
|
name: WooCommerce Beta Tester Release ${{ inputs.version }}
|
||||||
|
draft: false
|
||||||
|
files: plugins/woocommerce-beta-tester/woocommerce-beta-tester.zip
|
|
@ -1,17 +1,24 @@
|
||||||
// Note you'll need to install this dependency as part of your workflow.
|
// Note you'll need to install these dependencies as part of your workflow.
|
||||||
const { Octokit } = require( '@octokit/action' );
|
const { Octokit } = require( '@octokit/action' );
|
||||||
|
const core = require( '@actions/core' );
|
||||||
|
|
||||||
// Note that this script assumes you set GITHUB_TOKEN in env, if you don't
|
// Note that this script assumes you set GITHUB_TOKEN in env, if you don't
|
||||||
// this won't work.
|
// this won't work.
|
||||||
const octokit = new Octokit();
|
const octokit = new Octokit();
|
||||||
|
|
||||||
const getIssueAuthor = ( payload ) => {
|
const getIssueAuthor = ( payload ) => {
|
||||||
return payload?.issue?.user?.login || payload?.pull_request?.user?.login || null;
|
return (
|
||||||
}
|
payload?.issue?.user?.login ||
|
||||||
|
payload?.pull_request?.user?.login ||
|
||||||
|
null
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
const isCommunityContributor = async ( owner, repo, username ) => {
|
const isCommunityContributor = async ( owner, repo, username ) => {
|
||||||
if ( username ) {
|
if ( username ) {
|
||||||
const {data: {permission}} = await octokit.rest.repos.getCollaboratorPermissionLevel({
|
const {
|
||||||
|
data: { permission },
|
||||||
|
} = await octokit.rest.repos.getCollaboratorPermissionLevel( {
|
||||||
owner,
|
owner,
|
||||||
repo,
|
repo,
|
||||||
username,
|
username,
|
||||||
|
@ -21,7 +28,7 @@ const isCommunityContributor = async (owner, repo, username) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
};
|
||||||
|
|
||||||
const addLabel = async ( label, owner, repo, issueNumber ) => {
|
const addLabel = async ( label, owner, repo, issueNumber ) => {
|
||||||
await octokit.rest.issues.addLabels( {
|
await octokit.rest.issues.addLabels( {
|
||||||
|
@ -30,21 +37,26 @@ const addLabel = async(label, owner, repo, issueNumber) => {
|
||||||
issue_number: issueNumber,
|
issue_number: issueNumber,
|
||||||
labels: [ label ],
|
labels: [ label ],
|
||||||
} );
|
} );
|
||||||
}
|
};
|
||||||
|
|
||||||
const applyLabelToCommunityContributor = async () => {
|
const applyLabelToCommunityContributor = async () => {
|
||||||
const eventPayload = require( process.env.GITHUB_EVENT_PATH );
|
const eventPayload = require( process.env.GITHUB_EVENT_PATH );
|
||||||
const username = getIssueAuthor( eventPayload );
|
const username = getIssueAuthor( eventPayload );
|
||||||
const [owner, repo] = process.env.GITHUB_REPOSITORY.split("/");
|
const [ owner, repo ] = process.env.GITHUB_REPOSITORY.split( '/' );
|
||||||
const { number } = eventPayload?.issue || eventPayload?.pull_request;
|
const { number } = eventPayload?.issue || eventPayload?.pull_request;
|
||||||
|
|
||||||
const isCommunityUser = await isCommunityContributor(owner, repo, username);
|
const isCommunityUser = await isCommunityContributor(
|
||||||
console.log( '::set-output name=is-community::%s', isCommunityUser ? 'yes' : 'no' );
|
owner,
|
||||||
|
repo,
|
||||||
|
username
|
||||||
|
);
|
||||||
|
|
||||||
|
core.setOutput( 'is-community', isCommunityUser ? 'yes' : 'no' );
|
||||||
|
|
||||||
if ( isCommunityUser ) {
|
if ( isCommunityUser ) {
|
||||||
console.log( 'Adding community contributor label' );
|
console.log( 'Adding community contributor label' );
|
||||||
await addLabel( 'type: community contribution', owner, repo, number );
|
await addLabel( 'type: community contribution', owner, repo, number );
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
applyLabelToCommunityContributor();
|
applyLabelToCommunityContributor();
|
||||||
|
|
|
@ -10,8 +10,8 @@ if ( getenv( 'TIME_OVERRIDE' ) ) {
|
||||||
|
|
||||||
$base_dir = dirname( dirname( dirname( __DIR__ ) ) );
|
$base_dir = dirname( dirname( dirname( __DIR__ ) ) );
|
||||||
|
|
||||||
// The release date is 26 days after the code freeze.
|
// The release date is 22 days after the code freeze.
|
||||||
$release_time = strtotime( '+26 days', $now );
|
$release_time = strtotime( '+22 days', $now );
|
||||||
$release_date = date( 'Y-m-d', $release_time );
|
$release_date = date( 'Y-m-d', $release_time );
|
||||||
|
|
||||||
$readme_file = $base_dir . '/plugins/woocommerce/readme.txt';
|
$readme_file = $base_dir . '/plugins/woocommerce/readme.txt';
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
// phpcs:ignoreFile
|
||||||
/**
|
/**
|
||||||
* Script to automatically enforce the release code freeze.
|
* Script to automatically enforce the release code freeze.
|
||||||
*
|
*
|
||||||
|
@ -12,14 +13,24 @@ if ( getenv( 'TIME_OVERRIDE' ) ) {
|
||||||
$now = strtotime( getenv( 'TIME_OVERRIDE' ) );
|
$now = strtotime( getenv( 'TIME_OVERRIDE' ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Code freeze comes 26 days prior to release day.
|
/**
|
||||||
$release_time = strtotime( '+26 days', $now );
|
* Set an output for the GitHub action.
|
||||||
|
*
|
||||||
|
* @param string $name The name of the output.
|
||||||
|
* @param string $value The value of the output.
|
||||||
|
*/
|
||||||
|
function set_output( $name, $value ) {
|
||||||
|
file_put_contents( getenv( 'GITHUB_OUTPUT' ), "{$name}={$value}" . PHP_EOL, FILE_APPEND );
|
||||||
|
}
|
||||||
|
|
||||||
|
// Code freeze comes 22 days prior to release day.
|
||||||
|
$release_time = strtotime( '+22 days', $now );
|
||||||
$release_day_of_week = date( 'l', $release_time );
|
$release_day_of_week = date( 'l', $release_time );
|
||||||
$release_day_of_month = (int) date( 'j', $release_time );
|
$release_day_of_month = (int) date( 'j', $release_time );
|
||||||
|
|
||||||
// If 26 days from now isn't the second Tuesday, then it's not code freeze day.
|
// If 22 days from now isn't the second Tuesday, then it's not code freeze day.
|
||||||
if ( 'Tuesday' !== $release_day_of_week || $release_day_of_month < 8 || $release_day_of_month > 14 ) {
|
if ( 'Tuesday' !== $release_day_of_week || $release_day_of_month < 8 || $release_day_of_month > 14 ) {
|
||||||
echo 'Info: Today is not the Thursday of the code freeze.' . PHP_EOL;
|
echo 'Info: Today is not the Monday of the code freeze.' . PHP_EOL;
|
||||||
exit( 1 );
|
exit( 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,10 +52,11 @@ $milestone_to_create = "{$milestone_major_minor}.0";
|
||||||
|
|
||||||
if ( getenv( 'GITHUB_OUTPUTS' ) ) {
|
if ( getenv( 'GITHUB_OUTPUTS' ) ) {
|
||||||
echo 'Including GitHub Outputs...' . PHP_EOL;
|
echo 'Including GitHub Outputs...' . PHP_EOL;
|
||||||
echo '::set-output name=next_version::' . $milestone_major_minor . PHP_EOL;
|
|
||||||
echo '::set-output name=release_version::' . $branch_major_minor . PHP_EOL;
|
set_output( 'next_version', $milestone_major_minor );
|
||||||
echo '::set-output name=branch::' . $release_branch_to_create . PHP_EOL;
|
set_output( 'release_version', $branch_major_minor );
|
||||||
echo '::set-output name=milestone::' . $milestone_to_create . PHP_EOL;
|
set_output( 'branch', $release_branch_to_create );
|
||||||
|
set_output( 'milestone', $milestone_to_create );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( getenv( 'DRY_RUN' ) ) {
|
if ( getenv( 'DRY_RUN' ) ) {
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
#
|
||||||
|
# Verify that the PHP version in the launched WP ENV environment is equal to expected.
|
||||||
|
#
|
||||||
|
|
||||||
|
cd $GITHUB_WORKSPACE/plugins/woocommerce
|
||||||
|
ACTUAL_PHP_VERSION=$(pnpm exec wp-env run tests-cli "wp --info | grep 'PHP version:'")
|
||||||
|
EXIT_CODE=''
|
||||||
|
|
||||||
|
echo "PHP version found in WP Env environment: \"$ACTUAL_PHP_VERSION\""
|
||||||
|
echo "Expected PHP version: \"$EXPECTED_PHP_VERSION\""
|
||||||
|
|
||||||
|
if [[ $ACTUAL_PHP_VERSION == *"$EXPECTED_PHP_VERSION"* ]]
|
||||||
|
then
|
||||||
|
EXIT_CODE=0
|
||||||
|
else
|
||||||
|
EXIT_CODE=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit $EXIT_CODE
|
|
@ -3,6 +3,8 @@ on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '25 7 * * *'
|
- cron: '25 7 * * *'
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ping_site:
|
ping_site:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
|
@ -8,31 +8,31 @@ env:
|
||||||
API_ARTIFACT: api-daily--run-${{ github.run_number }}
|
API_ARTIFACT: api-daily--run-${{ github.run_number }}
|
||||||
E2E_ARTIFACT: e2e-daily--run-${{ github.run_number }}
|
E2E_ARTIFACT: e2e-daily--run-${{ github.run_number }}
|
||||||
FORCE_COLOR: 1
|
FORCE_COLOR: 1
|
||||||
BRANCH_NAME: ${{ github.ref_name }}
|
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
permissions: {}
|
||||||
e2e-tests:
|
|
||||||
name: E2E tests on nightly build
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
env:
|
|
||||||
ADMIN_PASSWORD: ${{ secrets.SMOKE_TEST_ADMIN_PASSWORD }}
|
|
||||||
ADMIN_USER: ${{ secrets.SMOKE_TEST_ADMIN_USER }}
|
|
||||||
ADMIN_USER_EMAIL: ${{ secrets.SMOKE_TEST_ADMIN_USER_EMAIL }}
|
|
||||||
ALLURE_REPORT_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/test-results/allure-report
|
|
||||||
ALLURE_RESULTS_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/test-results/allure-results
|
|
||||||
BASE_URL: ${{ secrets.SMOKE_TEST_URL }}
|
|
||||||
CUSTOMER_PASSWORD: ${{ secrets.SMOKE_TEST_CUSTOMER_PASSWORD }}
|
|
||||||
CUSTOMER_USER: ${{ secrets.SMOKE_TEST_CUSTOMER_USER }}
|
|
||||||
DEFAULT_TIMEOUT_OVERRIDE: 120000
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
api-tests:
|
||||||
|
name: API tests on nightly build
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
env:
|
||||||
|
ALLURE_RESULTS_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/api-core-tests/test-results/allure-results
|
||||||
|
ALLURE_REPORT_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/api-core-tests/test-results/allure-report
|
||||||
|
BASE_URL: ${{ secrets.SMOKE_TEST_URL }}
|
||||||
|
ADMIN_USER: ${{ secrets.SMOKE_TEST_ADMIN_USER }}
|
||||||
|
ADMIN_PASSWORD: ${{ secrets.SMOKE_TEST_ADMIN_PASSWORD }}
|
||||||
|
ADMIN_USER_EMAIL: ${{ secrets.SMOKE_TEST_ADMIN_USER_EMAIL }}
|
||||||
|
CUSTOMER_USER: ${{ secrets.SMOKE_TEST_CUSTOMER_USER }}
|
||||||
|
CUSTOMER_PASSWORD: ${{ secrets.SMOKE_TEST_CUSTOMER_PASSWORD }}
|
||||||
|
DEFAULT_TIMEOUT_OVERRIDE: 120000
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
ref: ${{ env.BRANCH_NAME }}
|
|
||||||
|
|
||||||
- name: Setup WooCommerce Monorepo
|
- name: Setup WooCommerce Monorepo
|
||||||
uses: ./.github/actions/setup-woocommerce-monorepo
|
uses: ./.github/actions/setup-woocommerce-monorepo
|
||||||
|
@ -47,58 +47,14 @@ jobs:
|
||||||
- name: Run 'Update WooCommerce' test.
|
- name: Run 'Update WooCommerce' test.
|
||||||
working-directory: plugins/woocommerce
|
working-directory: plugins/woocommerce
|
||||||
env:
|
env:
|
||||||
UPDATE_WC: true
|
UPDATE_WC: nightly
|
||||||
run: pnpm exec playwright test --config=tests/e2e-pw/daily.playwright.config.js update-woocommerce.spec.js
|
run: pnpm exec playwright test --config=tests/e2e-pw/daily.playwright.config.js update-woocommerce.spec.js
|
||||||
|
|
||||||
- name: Run the rest of E2E tests.
|
|
||||||
timeout-minutes: 60
|
|
||||||
working-directory: plugins/woocommerce
|
|
||||||
env:
|
|
||||||
E2E_MAX_FAILURES: 25
|
|
||||||
run: pnpm exec playwright test --config=tests/e2e-pw/daily.playwright.config.js
|
|
||||||
|
|
||||||
- name: Generate Playwright E2E Test report.
|
|
||||||
if: success() || failure()
|
|
||||||
working-directory: plugins/woocommerce
|
|
||||||
run: pnpm exec allure generate --clean ${{ env.ALLURE_RESULTS_DIR }} --output ${{ env.ALLURE_REPORT_DIR }}
|
|
||||||
|
|
||||||
- name: Archive E2E test report
|
|
||||||
if: success() || failure()
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: ${{ env.E2E_ARTIFACT }}
|
|
||||||
path: |
|
|
||||||
${{ env.ALLURE_RESULTS_DIR }}
|
|
||||||
${{ env.ALLURE_REPORT_DIR }}
|
|
||||||
if-no-files-found: ignore
|
|
||||||
retention-days: 5
|
|
||||||
|
|
||||||
api-tests:
|
|
||||||
name: API tests on nightly build
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
needs: [e2e-tests]
|
|
||||||
if: success() || failure()
|
|
||||||
env:
|
|
||||||
ALLURE_RESULTS_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/api-core-tests/api-test-report/allure-results
|
|
||||||
ALLURE_REPORT_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/api-core-tests/api-test-report/allure-report
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
ref: ${{ env.BRANCH_NAME }}
|
|
||||||
|
|
||||||
- name: Setup WooCommerce Monorepo
|
|
||||||
uses: ./.github/actions/setup-woocommerce-monorepo
|
|
||||||
with:
|
|
||||||
install-filters: woocommerce
|
|
||||||
build: false
|
|
||||||
|
|
||||||
- name: Run API tests.
|
- name: Run API tests.
|
||||||
working-directory: plugins/woocommerce
|
working-directory: plugins/woocommerce
|
||||||
env:
|
env:
|
||||||
BASE_URL: ${{ secrets.SMOKE_TEST_URL }}
|
|
||||||
USER_KEY: ${{ secrets.SMOKE_TEST_ADMIN_USER }}
|
USER_KEY: ${{ secrets.SMOKE_TEST_ADMIN_USER }}
|
||||||
USER_SECRET: ${{ secrets.SMOKE_TEST_ADMIN_PASSWORD }}
|
USER_SECRET: ${{ secrets.SMOKE_TEST_ADMIN_PASSWORD }}
|
||||||
DEFAULT_TIMEOUT_OVERRIDE: 120000
|
|
||||||
run: pnpm exec playwright test --config=tests/api-core-tests/playwright.config.js hello.test.js
|
run: pnpm exec playwright test --config=tests/api-core-tests/playwright.config.js hello.test.js
|
||||||
|
|
||||||
- name: Generate API Test report.
|
- name: Generate API Test report.
|
||||||
|
@ -117,15 +73,69 @@ jobs:
|
||||||
if-no-files-found: ignore
|
if-no-files-found: ignore
|
||||||
retention-days: 5
|
retention-days: 5
|
||||||
|
|
||||||
|
e2e-tests:
|
||||||
|
name: E2E tests on nightly build
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
needs: [api-tests]
|
||||||
|
env:
|
||||||
|
ADMIN_PASSWORD: ${{ secrets.SMOKE_TEST_ADMIN_PASSWORD }}
|
||||||
|
ADMIN_USER: ${{ secrets.SMOKE_TEST_ADMIN_USER }}
|
||||||
|
ADMIN_USER_EMAIL: ${{ secrets.SMOKE_TEST_ADMIN_USER_EMAIL }}
|
||||||
|
ALLURE_REPORT_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/test-results/allure-report
|
||||||
|
ALLURE_RESULTS_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/test-results/allure-results
|
||||||
|
BASE_URL: ${{ secrets.SMOKE_TEST_URL }}
|
||||||
|
CUSTOMER_PASSWORD: ${{ secrets.SMOKE_TEST_CUSTOMER_PASSWORD }}
|
||||||
|
CUSTOMER_USER: ${{ secrets.SMOKE_TEST_CUSTOMER_USER }}
|
||||||
|
DEFAULT_TIMEOUT_OVERRIDE: 120000
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup WooCommerce Monorepo
|
||||||
|
uses: ./.github/actions/setup-woocommerce-monorepo
|
||||||
|
with:
|
||||||
|
install-filters: woocommerce
|
||||||
|
build: false
|
||||||
|
|
||||||
|
- name: Download and install Chromium browser.
|
||||||
|
working-directory: plugins/woocommerce
|
||||||
|
run: pnpm exec playwright install chromium
|
||||||
|
|
||||||
|
- name: Run E2E tests.
|
||||||
|
timeout-minutes: 60
|
||||||
|
working-directory: plugins/woocommerce
|
||||||
|
env:
|
||||||
|
E2E_MAX_FAILURES: 25
|
||||||
|
RESET_SITE: true
|
||||||
|
run: pnpm exec playwright test --config=tests/e2e-pw/playwright.config.js
|
||||||
|
|
||||||
|
- name: Generate Playwright E2E Test report.
|
||||||
|
if: success() || failure()
|
||||||
|
working-directory: plugins/woocommerce
|
||||||
|
run: pnpm exec allure generate --clean ${{ env.ALLURE_RESULTS_DIR }} --output ${{ env.ALLURE_REPORT_DIR }}
|
||||||
|
|
||||||
|
- name: Archive E2E test report
|
||||||
|
if: success() || failure()
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: ${{ env.E2E_ARTIFACT }}
|
||||||
|
path: |
|
||||||
|
${{ env.ALLURE_RESULTS_DIR }}
|
||||||
|
${{ env.ALLURE_REPORT_DIR }}
|
||||||
|
if-no-files-found: ignore
|
||||||
|
retention-days: 5
|
||||||
|
|
||||||
k6-tests:
|
k6-tests:
|
||||||
name: k6 tests on nightly build
|
name: k6 tests on nightly build
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
needs: [api-tests]
|
needs: [api-tests]
|
||||||
if: success() || failure()
|
if: success() || failure()
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
ref: ${{ env.BRANCH_NAME }}
|
|
||||||
|
|
||||||
- name: Setup WooCommerce Monorepo
|
- name: Setup WooCommerce Monorepo
|
||||||
uses: ./.github/actions/setup-woocommerce-monorepo
|
uses: ./.github/actions/setup-woocommerce-monorepo
|
||||||
|
@ -145,7 +155,7 @@ jobs:
|
||||||
ADMIN_PASSWORD: ${{ secrets.SMOKE_TEST_PERF_ADMIN_PASSWORD }}
|
ADMIN_PASSWORD: ${{ secrets.SMOKE_TEST_PERF_ADMIN_PASSWORD }}
|
||||||
CUSTOMER_USER: ${{ secrets.SMOKE_TEST_PERF_ADMIN_USER }}
|
CUSTOMER_USER: ${{ secrets.SMOKE_TEST_PERF_ADMIN_USER }}
|
||||||
CUSTOMER_PASSWORD: ${{ secrets.SMOKE_TEST_PERF_ADMIN_PASSWORD }}
|
CUSTOMER_PASSWORD: ${{ secrets.SMOKE_TEST_PERF_ADMIN_PASSWORD }}
|
||||||
UPDATE_WC: true
|
UPDATE_WC: nightly
|
||||||
DEFAULT_TIMEOUT_OVERRIDE: 120000
|
DEFAULT_TIMEOUT_OVERRIDE: 120000
|
||||||
run: |
|
run: |
|
||||||
pnpm exec playwright test --config=tests/e2e-pw/playwright.config.js update-woocommerce.spec.js
|
pnpm exec playwright test --config=tests/e2e-pw/playwright.config.js update-woocommerce.spec.js
|
||||||
|
@ -163,13 +173,16 @@ jobs:
|
||||||
A_PW: ${{ secrets.SMOKE_TEST_PERF_ADMIN_PASSWORD }}
|
A_PW: ${{ secrets.SMOKE_TEST_PERF_ADMIN_PASSWORD }}
|
||||||
C_USER: ${{ secrets.SMOKE_TEST_PERF_ADMIN_USER }}
|
C_USER: ${{ secrets.SMOKE_TEST_PERF_ADMIN_USER }}
|
||||||
C_PW: ${{ secrets.SMOKE_TEST_PERF_ADMIN_PASSWORD }}
|
C_PW: ${{ secrets.SMOKE_TEST_PERF_ADMIN_PASSWORD }}
|
||||||
P_ID: 274
|
P_ID: 22733
|
||||||
run: |
|
run: |
|
||||||
./k6 run plugins/woocommerce/tests/performance/tests/gh-action-daily-ext-requests.js
|
./k6 run plugins/woocommerce/tests/performance/tests/gh-action-daily-ext-requests.js
|
||||||
|
|
||||||
test-plugins:
|
test-plugins:
|
||||||
name: Smoke tests on trunk with ${{ matrix.plugin }} plugin installed
|
name: Smoke tests on trunk with ${{ matrix.plugin }} plugin installed
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
needs: [api-tests]
|
||||||
env:
|
env:
|
||||||
USE_WP_ENV: 1
|
USE_WP_ENV: 1
|
||||||
ALLURE_RESULTS_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/allure-results
|
ALLURE_RESULTS_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/allure-results
|
||||||
|
@ -193,8 +206,6 @@ jobs:
|
||||||
repo: 'takayukister/contact-form-7'
|
repo: 'takayukister/contact-form-7'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
ref: ${{ env.BRANCH_NAME }}
|
|
||||||
|
|
||||||
- name: Setup WooCommerce Monorepo
|
- name: Setup WooCommerce Monorepo
|
||||||
uses: ./.github/actions/setup-woocommerce-monorepo
|
uses: ./.github/actions/setup-woocommerce-monorepo
|
||||||
|
@ -219,7 +230,7 @@ jobs:
|
||||||
working-directory: plugins/woocommerce
|
working-directory: plugins/woocommerce
|
||||||
env:
|
env:
|
||||||
E2E_MAX_FAILURES: 15
|
E2E_MAX_FAILURES: 15
|
||||||
run: pnpm exec playwright test --config=tests/e2e-pw/daily.playwright.config.js
|
run: pnpm exec playwright test --config=tests/e2e-pw/playwright.config.js
|
||||||
|
|
||||||
- name: Generate E2E Test report.
|
- name: Generate E2E Test report.
|
||||||
if: success() || failure()
|
if: success() || failure()
|
||||||
|
@ -243,7 +254,9 @@ jobs:
|
||||||
( success() || failure() ) &&
|
( success() || failure() ) &&
|
||||||
! github.event.pull_request.head.repo.fork
|
! github.event.pull_request.head.repo.fork
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
needs: [test-plugins, k6-tests]
|
permissions:
|
||||||
|
contents: read
|
||||||
|
needs: [e2e-tests, test-plugins, k6-tests]
|
||||||
steps:
|
steps:
|
||||||
- name: Create dirs
|
- name: Create dirs
|
||||||
run: |
|
run: |
|
||||||
|
@ -256,7 +269,6 @@ jobs:
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: repo
|
path: repo
|
||||||
ref: ${{ env.BRANCH_NAME }}
|
|
||||||
|
|
||||||
- name: Download API test report artifact
|
- name: Download API test report artifact
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
|
@ -299,7 +311,7 @@ jobs:
|
||||||
( success() || failure() ) &&
|
( success() || failure() ) &&
|
||||||
! github.event.pull_request.head.repo.fork
|
! github.event.pull_request.head.repo.fork
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
needs: [test-plugins, k6-tests]
|
needs: [e2e-tests, test-plugins, k6-tests]
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.REPORTS_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.REPORTS_TOKEN }}
|
||||||
RUN_ID: ${{ github.run_id }}
|
RUN_ID: ${{ github.run_id }}
|
||||||
|
|
|
@ -1,176 +1,691 @@
|
||||||
name: Smoke test release
|
name: Smoke test release
|
||||||
on:
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
release_id:
|
tag:
|
||||||
description: 'WooCommerce Release Id'
|
description: 'WooCommerce Release Tag'
|
||||||
required: true
|
required: true
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
permissions: {}
|
||||||
|
env:
|
||||||
|
E2E_WP_LATEST_ARTIFACT: e2e-wp-latest--run-${{ github.run_number }}
|
||||||
|
E2E_UPDATE_WC_ARTIFACT: e2e-update-wc--run-${{ github.run_number }}
|
||||||
|
FORCE_COLOR: 1
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
login-run:
|
get-tag:
|
||||||
name: Daily smoke test on release.
|
name: Get WooCommerce release tag
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
outputs:
|
||||||
|
tag: ${{ steps.tag.outputs.result }}
|
||||||
|
created: ${{ steps.created-at.outputs.created }}
|
||||||
|
steps:
|
||||||
|
- name: Validate tag
|
||||||
|
if: ${{ github.event_name == 'workflow_dispatch' }}
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ github.token }}
|
||||||
|
run: gh release view "${{ github.event.inputs.tag }}" --repo=woocommerce/woocommerce
|
||||||
|
|
||||||
|
- name: Get tag
|
||||||
|
uses: actions/github-script@v6
|
||||||
|
id: tag
|
||||||
|
with:
|
||||||
|
result-encoding: string
|
||||||
|
script: |
|
||||||
|
console.log( "${{ github.event_name }}" );
|
||||||
|
return "${{ github.event.release.tag_name }}" || "${{ github.event.inputs.tag }}"
|
||||||
|
|
||||||
|
- name: Verify woocommerce.zip asset
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
|
RELEASE_TAG: ${{ steps.tag.outputs.result }}
|
||||||
|
run: |
|
||||||
|
gh release download $RELEASE_TAG --repo woocommerce/woocommerce
|
||||||
|
if [[ -f "woocommerce.zip" ]]
|
||||||
|
then
|
||||||
|
echo "$RELEASE_TAG has a valid woocommerce.zip asset."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "$RELEASE_TAG does not have a valid woocommerce.zip asset."
|
||||||
|
exit 1
|
||||||
|
|
||||||
|
- name: Get 'created-at' of WooCommerce zip
|
||||||
|
id: created-at
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ github.token }}
|
||||||
|
run: echo "created=$(gh release view ${{ steps.tag.outputs.result }} --json assets --jq .assets[0].createdAt --repo woocommerce/woocommerce)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
e2e-update-wc:
|
||||||
|
name: Test WooCommerce update
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
needs: [get-tag]
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
env:
|
||||||
|
ALLURE_REPORT_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/test-results/allure-report
|
||||||
|
ALLURE_RESULTS_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/test-results/allure-results
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
ref: trunk
|
|
||||||
|
|
||||||
- name: Setup WooCommerce Monorepo
|
- name: Setup WooCommerce Monorepo
|
||||||
uses: ./.github/actions/setup-woocommerce-monorepo
|
uses: ./.github/actions/setup-woocommerce-monorepo
|
||||||
with:
|
with:
|
||||||
build-filters: woocommerce
|
install-filters: woocommerce
|
||||||
|
build: false
|
||||||
|
|
||||||
- name: Install Jest
|
- name: Download and install Chromium browser.
|
||||||
run: npm install -g jest
|
working-directory: plugins/woocommerce
|
||||||
|
run: pnpm exec playwright install chromium
|
||||||
|
|
||||||
- name: Run smoke test.
|
- name: Run 'Update WooCommerce' test.
|
||||||
working-directory: plugins/woocommerce
|
working-directory: plugins/woocommerce
|
||||||
env:
|
env:
|
||||||
SMOKE_TEST_URL: ${{ secrets.RELEASE_TEST_URL }}
|
ADMIN_PASSWORD: ${{ secrets.RELEASE_TEST_ADMIN_PASSWORD }}
|
||||||
SMOKE_TEST_ADMIN_USER: ${{ secrets.RELEASE_TEST_ADMIN_USER }}
|
ADMIN_USER: ${{ secrets.RELEASE_TEST_ADMIN_USER }}
|
||||||
SMOKE_TEST_ADMIN_PASSWORD: ${{ secrets.RELEASE_TEST_ADMIN_PASSWORD }}
|
BASE_URL: ${{ secrets.RELEASE_TEST_URL }}
|
||||||
SMOKE_TEST_ADMIN_USER_EMAIL: ${{ secrets.RELEASE_TEST_ADMIN_USER_EMAIL }}
|
CUSTOMER_PASSWORD: ${{ secrets.RELEASE_TEST_CUSTOMER_PASSWORD }}
|
||||||
SMOKE_TEST_CUSTOMER_USER: ${{ secrets.RELEASE_TEST_CUSTOMER_USER }}
|
CUSTOMER_USER: ${{ secrets.RELEASE_TEST_CUSTOMER_USER }}
|
||||||
SMOKE_TEST_CUSTOMER_PASSWORD: ${{ secrets.RELEASE_TEST_CUSTOMER_PASSWORD }}
|
|
||||||
WC_E2E_SCREENSHOTS: 1
|
|
||||||
E2E_RETEST: 1
|
|
||||||
E2E_SLACK_TOKEN: ${{ secrets.SMOKE_TEST_SLACK_TOKEN }}
|
|
||||||
E2E_SLACK_CHANNEL: 'C02DS4NE72S'
|
|
||||||
TEST_RELEASE: 1
|
|
||||||
UPDATE_WC: 1
|
|
||||||
DEFAULT_TIMEOUT_OVERRIDE: 120000
|
DEFAULT_TIMEOUT_OVERRIDE: 120000
|
||||||
|
UPDATE_WC: ${{ needs.get-tag.outputs.tag }}
|
||||||
|
run: |
|
||||||
|
pnpm exec playwright test \
|
||||||
|
--config=tests/e2e-pw/playwright.config.js \
|
||||||
|
update-woocommerce.spec.js
|
||||||
|
|
||||||
|
- name: Generate 'Update WooCommerce' test report.
|
||||||
|
if: success() || failure()
|
||||||
|
working-directory: plugins/woocommerce
|
||||||
|
run: pnpm exec allure generate --clean ${{ env.ALLURE_RESULTS_DIR }} --output ${{ env.ALLURE_REPORT_DIR }}
|
||||||
|
|
||||||
|
- name: Configure AWS credentials
|
||||||
|
if: success() || failure()
|
||||||
|
uses: aws-actions/configure-aws-credentials@v1
|
||||||
|
with:
|
||||||
|
aws-region: ${{ secrets.REPORTS_AWS_REGION }}
|
||||||
|
aws-access-key-id: ${{ secrets.REPORTS_AWS_ACCESS_KEY_ID }}
|
||||||
|
aws-secret-access-key: ${{ secrets.REPORTS_AWS_SECRET_ACCESS_KEY }}
|
||||||
|
|
||||||
|
- name: Upload Allure files to bucket
|
||||||
|
if: success() || failure()
|
||||||
|
run: |
|
||||||
|
aws s3 sync ${{ env.ALLURE_RESULTS_DIR }} \
|
||||||
|
${{ secrets.REPORTS_BUCKET }}/artifacts/${{ github.run_id }}/${{ env.E2E_WP_LATEST_ARTIFACT }}/allure-results \
|
||||||
|
--quiet
|
||||||
|
aws s3 sync ${{ env.ALLURE_REPORT_DIR }} \
|
||||||
|
${{ secrets.REPORTS_BUCKET }}/artifacts/${{ github.run_id }}/${{ env.E2E_WP_LATEST_ARTIFACT }}/allure-report \
|
||||||
|
--quiet
|
||||||
|
|
||||||
|
- name: Publish E2E Allure report
|
||||||
|
if: success() || failure()
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.REPORTS_TOKEN }}
|
||||||
|
ENV_DESCRIPTION: wp-latest
|
||||||
|
run: |
|
||||||
|
gh workflow run publish-test-reports-release.yml \
|
||||||
|
-f created_at="${{ needs.get-tag.outputs.created }}" \
|
||||||
|
-f run_id=${{ github.run_id }} \
|
||||||
|
-f run_number=${{ github.run_number }} \
|
||||||
|
-f release_tag=${{ needs.get-tag.outputs.tag }} \
|
||||||
|
-f artifact="${{ env.E2E_WP_LATEST_ARTIFACT }}" \
|
||||||
|
-f env_description="${{ env.ENV_DESCRIPTION }}" \
|
||||||
|
-f test_type="e2e" \
|
||||||
|
--repo woocommerce/woocommerce-test-reports
|
||||||
|
|
||||||
|
- name: Archive 'Update WooCommerce' test report
|
||||||
|
if: success() || failure()
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: ${{ env.E2E_UPDATE_WC_ARTIFACT }}
|
||||||
|
path: |
|
||||||
|
${{ env.ALLURE_RESULTS_DIR }}
|
||||||
|
${{ env.ALLURE_REPORT_DIR }}
|
||||||
|
if-no-files-found: ignore
|
||||||
|
retention-days: 5
|
||||||
|
|
||||||
|
api-wp-latest:
|
||||||
|
name: API on WP Latest
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
needs: [get-tag, e2e-update-wc]
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
env:
|
||||||
|
ALLURE_REPORT_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/api-core-tests/api-test-report/allure-report
|
||||||
|
ALLURE_RESULTS_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/api-core-tests/api-test-report/allure-results
|
||||||
|
API_WP_LATEST_ARTIFACT: api-wp-latest--run-${{ github.run_number }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup WooCommerce Monorepo
|
||||||
|
uses: ./.github/actions/setup-woocommerce-monorepo
|
||||||
|
with:
|
||||||
|
install-filters: woocommerce
|
||||||
|
build: false
|
||||||
|
|
||||||
|
- name: Run API tests.
|
||||||
|
working-directory: plugins/woocommerce
|
||||||
|
env:
|
||||||
BASE_URL: ${{ secrets.RELEASE_TEST_URL }}
|
BASE_URL: ${{ secrets.RELEASE_TEST_URL }}
|
||||||
USER_KEY: ${{ secrets.RELEASE_TEST_ADMIN_USER }}
|
USER_KEY: ${{ secrets.RELEASE_TEST_ADMIN_USER }}
|
||||||
USER_SECRET: ${{ secrets.RELEASE_TEST_ADMIN_PASSWORD }}
|
USER_SECRET: ${{ secrets.RELEASE_TEST_ADMIN_PASSWORD }}
|
||||||
run: |
|
run: pnpm exec playwright test --config=tests/api-core-tests/playwright.config.js hello
|
||||||
pnpm exec wc-e2e docker:up
|
|
||||||
pnpm exec wc-e2e test:e2e tests/e2e/specs/smoke-tests/update-woocommerce.js
|
|
||||||
pnpm exec wc-e2e test:e2e
|
|
||||||
pnpm exec wc-api-tests test api
|
|
||||||
test-wp-version:
|
|
||||||
name: Smoke test on L-${{ matrix.wp }} WordPress version
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
wp: ['1', '2']
|
|
||||||
steps:
|
|
||||||
- name: Create dirs.
|
|
||||||
run: |
|
|
||||||
mkdir -p package/woocommerce
|
|
||||||
mkdir -p tmp/woocommerce
|
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- name: Generate API Test report.
|
||||||
|
if: success() || failure()
|
||||||
|
working-directory: plugins/woocommerce
|
||||||
|
run: pnpm exec allure generate --clean ${{ env.ALLURE_RESULTS_DIR }} --output ${{ env.ALLURE_REPORT_DIR }}
|
||||||
|
|
||||||
|
- name: Configure AWS credentials
|
||||||
|
if: success() || failure()
|
||||||
|
uses: aws-actions/configure-aws-credentials@v1
|
||||||
with:
|
with:
|
||||||
path: package/woocommerce
|
aws-region: ${{ secrets.REPORTS_AWS_REGION }}
|
||||||
|
aws-access-key-id: ${{ secrets.REPORTS_AWS_ACCESS_KEY_ID }}
|
||||||
|
aws-secret-access-key: ${{ secrets.REPORTS_AWS_SECRET_ACCESS_KEY }}
|
||||||
|
|
||||||
|
- name: Upload Allure files to bucket
|
||||||
|
if: success() || failure()
|
||||||
|
run: |
|
||||||
|
aws s3 cp ${{ env.ALLURE_RESULTS_DIR }} \
|
||||||
|
${{ secrets.REPORTS_BUCKET }}/artifacts/${{ github.run_id }}/${{ env.API_WP_LATEST_ARTIFACT }}/allure-results \
|
||||||
|
--recursive \
|
||||||
|
--quiet
|
||||||
|
aws s3 cp ${{ env.ALLURE_REPORT_DIR }} \
|
||||||
|
${{ secrets.REPORTS_BUCKET }}/artifacts/${{ github.run_id }}/${{ env.API_WP_LATEST_ARTIFACT }}/allure-report \
|
||||||
|
--recursive \
|
||||||
|
--quiet
|
||||||
|
|
||||||
|
- name: Publish API Allure report
|
||||||
|
if: success() || failure()
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.REPORTS_TOKEN }}
|
||||||
|
ENV_DESCRIPTION: wp-latest
|
||||||
|
run: |
|
||||||
|
gh workflow run publish-test-reports-release.yml \
|
||||||
|
-f created_at="${{ needs.get-tag.outputs.created }}" \
|
||||||
|
-f run_id=${{ github.run_id }} \
|
||||||
|
-f run_number=${{ github.run_number }} \
|
||||||
|
-f release_tag=${{ needs.get-tag.outputs.tag }} \
|
||||||
|
-f artifact="${{ env.API_WP_LATEST_ARTIFACT }}" \
|
||||||
|
-f env_description="${{ env.ENV_DESCRIPTION }}" \
|
||||||
|
-f test_type="api" \
|
||||||
|
--repo woocommerce/woocommerce-test-reports
|
||||||
|
|
||||||
|
- name: Archive API test report
|
||||||
|
if: success() || failure()
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: ${{ env.API_WP_LATEST_ARTIFACT }}
|
||||||
|
path: |
|
||||||
|
${{ env.ALLURE_RESULTS_DIR }}
|
||||||
|
${{ env.ALLURE_REPORT_DIR }}
|
||||||
|
if-no-files-found: ignore
|
||||||
|
retention-days: 5
|
||||||
|
|
||||||
|
e2e-wp-latest:
|
||||||
|
name: E2E on WP Latest
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
needs: [get-tag, api-wp-latest]
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
env:
|
||||||
|
ALLURE_REPORT_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/test-results/allure-report
|
||||||
|
ALLURE_RESULTS_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/test-results/allure-results
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup WooCommerce Monorepo
|
- name: Setup WooCommerce Monorepo
|
||||||
uses: ./.github/actions/setup-woocommerce-monorepo
|
uses: ./.github/actions/setup-woocommerce-monorepo
|
||||||
with:
|
with:
|
||||||
build-filters: woocommerce
|
install-filters: woocommerce
|
||||||
|
build: false
|
||||||
|
|
||||||
- name: Fetch Asset ID
|
- name: Download and install Chromium browser.
|
||||||
id: fetch_asset_id
|
working-directory: plugins/woocommerce
|
||||||
uses: actions/github-script@v5
|
run: pnpm exec playwright install chromium
|
||||||
|
|
||||||
|
- name: Run E2E tests
|
||||||
env:
|
env:
|
||||||
RELEASE_ID: ${{ github.event.inputs.release_id }}
|
ADMIN_PASSWORD: ${{ secrets.RELEASE_TEST_ADMIN_PASSWORD }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
ADMIN_USER: ${{ secrets.RELEASE_TEST_ADMIN_USER }}
|
||||||
REPO: ${{ github.repository }}
|
ADMIN_USER_EMAIL: ${{ secrets.RELEASE_TEST_ADMIN_USER_EMAIL }}
|
||||||
|
BASE_URL: ${{ secrets.RELEASE_TEST_URL }}
|
||||||
|
CUSTOMER_PASSWORD: ${{ secrets.RELEASE_TEST_CUSTOMER_PASSWORD }}
|
||||||
|
CUSTOMER_USER: ${{ secrets.RELEASE_TEST_CUSTOMER_USER }}
|
||||||
|
DEFAULT_TIMEOUT_OVERRIDE: 120000
|
||||||
|
E2E_MAX_FAILURES: 25
|
||||||
|
RESET_SITE: true
|
||||||
|
timeout-minutes: 60
|
||||||
|
working-directory: plugins/woocommerce
|
||||||
|
run: pnpm exec playwright test --config=tests/e2e-pw/ignore-plugin-tests.playwright.config.js
|
||||||
|
|
||||||
|
- name: Download 'e2e-update-wc' artifact
|
||||||
|
if: success() || failure()
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: ${{ env.E2E_UPDATE_WC_ARTIFACT }}
|
||||||
|
path: plugins/woocommerce/tmp
|
||||||
|
|
||||||
|
- name: Add allure-results from 'e2e-update-wc'
|
||||||
|
if: success() || failure()
|
||||||
|
working-directory: plugins/woocommerce
|
||||||
|
run: cp -r tmp/allure-results tests/e2e-pw/test-results
|
||||||
|
|
||||||
|
- name: Generate E2E Test report.
|
||||||
|
if: success() || failure()
|
||||||
|
working-directory: plugins/woocommerce
|
||||||
|
run: pnpm exec allure generate --clean ${{ env.ALLURE_RESULTS_DIR }} --output ${{ env.ALLURE_REPORT_DIR }}
|
||||||
|
|
||||||
|
- name: Configure AWS credentials
|
||||||
|
if: success() || failure()
|
||||||
|
uses: aws-actions/configure-aws-credentials@v1
|
||||||
|
with:
|
||||||
|
aws-region: ${{ secrets.REPORTS_AWS_REGION }}
|
||||||
|
aws-access-key-id: ${{ secrets.REPORTS_AWS_ACCESS_KEY_ID }}
|
||||||
|
aws-secret-access-key: ${{ secrets.REPORTS_AWS_SECRET_ACCESS_KEY }}
|
||||||
|
|
||||||
|
- name: Upload report to bucket
|
||||||
|
if: success() || failure()
|
||||||
|
run: |
|
||||||
|
aws s3 sync ${{ env.ALLURE_RESULTS_DIR }} \
|
||||||
|
${{ secrets.REPORTS_BUCKET }}/artifacts/${{ github.run_id }}/${{ env.E2E_WP_LATEST_ARTIFACT }}/allure-results \
|
||||||
|
--quiet
|
||||||
|
aws s3 sync ${{ env.ALLURE_REPORT_DIR }} \
|
||||||
|
${{ secrets.REPORTS_BUCKET }}/artifacts/${{ github.run_id }}/${{ env.E2E_WP_LATEST_ARTIFACT }}/allure-report \
|
||||||
|
--quiet
|
||||||
|
|
||||||
|
- name: Publish E2E Allure report
|
||||||
|
if: success() || failure()
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.REPORTS_TOKEN }}
|
||||||
|
ENV_DESCRIPTION: wp-latest
|
||||||
|
run: |
|
||||||
|
gh workflow run publish-test-reports-release.yml \
|
||||||
|
-f created_at="${{ needs.get-tag.outputs.created }}" \
|
||||||
|
-f run_id=${{ github.run_id }} \
|
||||||
|
-f run_number=${{ github.run_number }} \
|
||||||
|
-f release_tag=${{ needs.get-tag.outputs.tag }} \
|
||||||
|
-f artifact="${{ env.E2E_WP_LATEST_ARTIFACT }}" \
|
||||||
|
-f env_description="${{ env.ENV_DESCRIPTION }}" \
|
||||||
|
-f test_type="e2e" \
|
||||||
|
--repo woocommerce/woocommerce-test-reports
|
||||||
|
|
||||||
|
- name: Archive E2E test report
|
||||||
|
if: success() || failure()
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: ${{ env.E2E_WP_LATEST_ARTIFACT }}
|
||||||
|
path: |
|
||||||
|
${{ env.ALLURE_RESULTS_DIR }}
|
||||||
|
${{ env.ALLURE_REPORT_DIR }}
|
||||||
|
if-no-files-found: ignore
|
||||||
|
retention-days: 5
|
||||||
|
|
||||||
|
get-wp-versions:
|
||||||
|
name: Get WP L-1 & L-2 version numbers
|
||||||
|
needs: [get-tag]
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
outputs:
|
||||||
|
matrix: ${{ steps.get-versions.outputs.versions }}
|
||||||
|
tag: ${{ needs.get-tag.outputs.tag }}
|
||||||
|
created: ${{ needs.get-tag.outputs.created }}
|
||||||
|
steps:
|
||||||
|
- name: Create dirs
|
||||||
|
run: |
|
||||||
|
mkdir script
|
||||||
|
mkdir repo
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
path: repo
|
||||||
|
|
||||||
|
- name: Copy script to get previous WP versions
|
||||||
|
run: cp repo/plugins/woocommerce/tests/e2e-pw/utils/wordpress.js script
|
||||||
|
|
||||||
|
- name: Install axios
|
||||||
|
working-directory: script
|
||||||
|
run: npm install axios
|
||||||
|
|
||||||
|
- name: Get version numbers
|
||||||
|
id: get-versions
|
||||||
|
uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const script = require( './package/woocommerce/.github/workflows/scripts/fetch-asset-id.js' )
|
const { getPreviousTwoVersions } = require('./script/wordpress');
|
||||||
await script({github, context, core})
|
const versions = await getPreviousTwoVersions();
|
||||||
|
console.log(versions);
|
||||||
|
core.setOutput('versions', versions);
|
||||||
|
|
||||||
- name: Download WooCommerce release zip
|
test-wp-versions:
|
||||||
working-directory: tmp
|
name: Test against ${{ matrix.version.description }} (${{ matrix.version.number }})
|
||||||
run: |
|
|
||||||
curl https://api.github.com/repos/${{ github.repository }}/releases/assets/${{ steps.fetch_asset_id.outputs.asset_id }} -LJOH 'Accept: application/octet-stream'
|
|
||||||
|
|
||||||
unzip woocommerce.zip -d woocommerce
|
|
||||||
rsync -a woocommerce/woocommerce/* ../package/woocommerce/plugins/woocommerce/
|
|
||||||
|
|
||||||
- name: Load docker images and start containers.
|
|
||||||
working-directory: package/woocommerce
|
|
||||||
env:
|
|
||||||
LATEST_WP_VERSION_MINUS: ${{ matrix.wp }}
|
|
||||||
run: pnpm docker:up --filter=woocommerce
|
|
||||||
|
|
||||||
- name: Run tests command.
|
|
||||||
working-directory: package/woocommerce/plugins/woocommerce
|
|
||||||
env:
|
|
||||||
WC_E2E_SCREENSHOTS: 1
|
|
||||||
E2E_SLACK_TOKEN: ${{ secrets.SMOKE_TEST_SLACK_TOKEN }}
|
|
||||||
E2E_SLACK_CHANNEL: ${{ secrets.RELEASE_TEST_SLACK_CHANNEL }}
|
|
||||||
run: pnpm exec wc-e2e test:e2e
|
|
||||||
|
|
||||||
test-plugins:
|
|
||||||
name: Smoke tests with ${{ matrix.plugin }} plugin installed
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
needs: [get-wp-versions]
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
matrix: ${{ fromJSON(needs.get-wp-versions.outputs.matrix) }}
|
||||||
matrix:
|
env:
|
||||||
include:
|
API_ALLURE_REPORT_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/test-results/api/allure-report
|
||||||
- plugin: 'WooCommerce Payments'
|
API_ALLURE_RESULTS_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/test-results/api/allure-results
|
||||||
repo: 'automattic/woocommerce-payments'
|
API_WP_LATEST_X_ARTIFACT: api-${{ matrix.version.env_description }}--run-${{ github.run_number }}
|
||||||
- plugin: 'WooCommerce PayPal Payments'
|
E2E_ALLURE_REPORT_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/test-results/e2e/allure-report
|
||||||
repo: 'woocommerce/woocommerce-paypal-payments'
|
E2E_ALLURE_RESULTS_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/test-results/e2e/allure-results
|
||||||
- plugin: 'WooCommerce Shipping & Tax'
|
E2E_WP_LATEST_X_ARTIFACT: e2e-${{ matrix.version.env_description }}--run-${{ github.run_number }}
|
||||||
repo: 'automattic/woocommerce-services'
|
permissions:
|
||||||
- plugin: 'WooCommerce Subscriptions'
|
contents: read
|
||||||
repo: WC_SUBSCRIPTIONS_REPO
|
|
||||||
private: true
|
|
||||||
- plugin: 'WordPress SEO' # Yoast SEO in the UI, but the slug is wordpress-seo
|
|
||||||
repo: 'Yoast/wordpress-seo'
|
|
||||||
- plugin: 'Contact Form 7'
|
|
||||||
repo: 'takayukister/contact-form-7'
|
|
||||||
steps:
|
steps:
|
||||||
- name: Create dirs.
|
- name: Checkout WooCommerce repo
|
||||||
run: |
|
uses: actions/checkout@v3
|
||||||
mkdir -p package/woocommerce
|
|
||||||
mkdir -p tmp/woocommerce
|
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
path: package/woocommerce
|
|
||||||
|
|
||||||
- name: Setup WooCommerce Monorepo
|
- name: Setup WooCommerce Monorepo
|
||||||
uses: ./.github/actions/setup-woocommerce-monorepo
|
uses: ./.github/actions/setup-woocommerce-monorepo
|
||||||
with:
|
|
||||||
build-filters: woocommerce
|
|
||||||
|
|
||||||
- name: Fetch Asset ID
|
- name: Launch WP Env
|
||||||
id: fetch_asset_id
|
working-directory: plugins/woocommerce
|
||||||
uses: actions/github-script@v5
|
run: pnpm run env:test
|
||||||
|
|
||||||
|
- name: Download release zip
|
||||||
env:
|
env:
|
||||||
RELEASE_ID: ${{ github.event.inputs.release_id }}
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
run: gh release download ${{ needs.get-wp-versions.outputs.tag }} --dir tmp
|
||||||
REPO: ${{ github.repository }}
|
|
||||||
with:
|
|
||||||
script: |
|
|
||||||
const script = require( './package/woocommerce/.github/workflows/scripts/fetch-asset-id.js' )
|
|
||||||
await script({github, context, core})
|
|
||||||
|
|
||||||
- name: Download WooCommerce release zip
|
- name: Replace `plugins/woocommerce` with unzipped woocommerce release build
|
||||||
working-directory: tmp
|
run: unzip -d plugins -o tmp/woocommerce.zip
|
||||||
|
|
||||||
|
- name: Downgrade WordPress version to ${{ matrix.version.number }}
|
||||||
|
working-directory: plugins/woocommerce
|
||||||
run: |
|
run: |
|
||||||
curl https://api.github.com/repos/${{ github.repository }}/releases/assets/${{ steps.fetch_asset_id.outputs.asset_id }} -LJOH 'Accept: application/octet-stream'
|
pnpm exec wp-env run tests-cli "wp core update --version=${{ matrix.version.number }} --force"
|
||||||
|
pnpm exec wp-env run tests-cli "wp core update-db"
|
||||||
|
|
||||||
unzip woocommerce.zip -d woocommerce
|
- name: Verify environment details
|
||||||
rsync -a woocommerce/woocommerce/* ../package/woocommerce/plugins/woocommerce/
|
working-directory: plugins/woocommerce
|
||||||
|
|
||||||
- name: Load docker images and start containers.
|
|
||||||
working-directory: package/woocommerce
|
|
||||||
env:
|
|
||||||
LATEST_WP_VERSION_MINUS: ${{ matrix.wp }}
|
|
||||||
run: pnpm docker:up --filter=woocommerce
|
|
||||||
|
|
||||||
- name: Run tests command.
|
|
||||||
working-directory: package/woocommerce/plugins/woocommerce
|
|
||||||
env:
|
|
||||||
WC_E2E_SCREENSHOTS: 1
|
|
||||||
E2E_SLACK_TOKEN: ${{ secrets.SMOKE_TEST_SLACK_TOKEN }}
|
|
||||||
E2E_SLACK_CHANNEL: ${{ secrets.RELEASE_TEST_SLACK_CHANNEL }}
|
|
||||||
PLUGIN_REPOSITORY: ${{ matrix.private && secrets[matrix.repo] || matrix.repo }}
|
|
||||||
PLUGIN_NAME: ${{ matrix.plugin }}
|
|
||||||
GITHUB_TOKEN: ${{ secrets.E2E_GH_TOKEN }}
|
|
||||||
run: |
|
run: |
|
||||||
pnpm exec wc-e2e test:e2e tests/e2e/specs/smoke-tests/upload-plugin.js
|
pnpm exec wp-env run tests-cli "wp core version"
|
||||||
pnpm exec wc-e2e test:e2e
|
pnpm exec wp-env run tests-cli "wp plugin list"
|
||||||
|
pnpm exec wp-env run tests-cli "wp theme list"
|
||||||
|
pnpm exec wp-env run tests-cli "wp user list"
|
||||||
|
|
||||||
|
- name: Run API tests.
|
||||||
|
id: api
|
||||||
|
working-directory: plugins/woocommerce
|
||||||
|
env:
|
||||||
|
ALLURE_RESULTS_DIR: ${{ env.API_ALLURE_RESULTS_DIR }}
|
||||||
|
run: pnpm exec playwright test --config=tests/api-core-tests/playwright.config.js hello
|
||||||
|
|
||||||
|
- name: Generate API Allure report.
|
||||||
|
if: success() || failure()
|
||||||
|
working-directory: plugins/woocommerce
|
||||||
|
run: pnpm exec allure generate --clean ${{ env.API_ALLURE_RESULTS_DIR }} --output ${{ env.API_ALLURE_REPORT_DIR }}
|
||||||
|
|
||||||
|
- name: Configure AWS credentials
|
||||||
|
if: success() || failure()
|
||||||
|
uses: aws-actions/configure-aws-credentials@v1
|
||||||
|
with:
|
||||||
|
aws-region: ${{ secrets.REPORTS_AWS_REGION }}
|
||||||
|
aws-access-key-id: ${{ secrets.REPORTS_AWS_ACCESS_KEY_ID }}
|
||||||
|
aws-secret-access-key: ${{ secrets.REPORTS_AWS_SECRET_ACCESS_KEY }}
|
||||||
|
|
||||||
|
- name: Upload API Allure artifacts to bucket
|
||||||
|
if: success() || failure()
|
||||||
|
run: |
|
||||||
|
aws s3 sync ${{ env.API_ALLURE_RESULTS_DIR }} \
|
||||||
|
${{ secrets.REPORTS_BUCKET }}/artifacts/${{ github.run_id }}/${{ env.API_WP_LATEST_X_ARTIFACT }}/allure-results \
|
||||||
|
--quiet
|
||||||
|
aws s3 sync ${{ env.API_ALLURE_REPORT_DIR }} \
|
||||||
|
${{ secrets.REPORTS_BUCKET }}/artifacts/${{ github.run_id }}/${{ env.API_WP_LATEST_X_ARTIFACT }}/allure-report \
|
||||||
|
--quiet
|
||||||
|
|
||||||
|
- name: Publish API Allure report
|
||||||
|
if: success() || failure()
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.REPORTS_TOKEN }}
|
||||||
|
ENV_DESCRIPTION: ${{ matrix.version.env_description }}
|
||||||
|
run: |
|
||||||
|
gh workflow run publish-test-reports-release.yml \
|
||||||
|
-f created_at="${{ needs.get-wp-versions.outputs.created }}" \
|
||||||
|
-f run_id=${{ github.run_id }} \
|
||||||
|
-f run_number=${{ github.run_number }} \
|
||||||
|
-f release_tag=${{ needs.get-wp-versions.outputs.tag }} \
|
||||||
|
-f artifact="${{ env.API_WP_LATEST_X_ARTIFACT }}" \
|
||||||
|
-f env_description="${{ env.ENV_DESCRIPTION }}" \
|
||||||
|
-f test_type="api" \
|
||||||
|
--repo woocommerce/woocommerce-test-reports
|
||||||
|
|
||||||
|
- name: Archive API Allure reports
|
||||||
|
if: success() || failure()
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: ${{ env.API_WP_LATEST_X_ARTIFACT }}
|
||||||
|
path: |
|
||||||
|
${{ env.API_ALLURE_RESULTS_DIR }}
|
||||||
|
${{ env.API_ALLURE_REPORT_DIR }}
|
||||||
|
if-no-files-found: ignore
|
||||||
|
retention-days: 5
|
||||||
|
|
||||||
|
- name: Download and install Chromium browser.
|
||||||
|
if: success() || failure()
|
||||||
|
working-directory: plugins/woocommerce
|
||||||
|
run: pnpm exec playwright install chromium
|
||||||
|
|
||||||
|
- name: Run E2E tests.
|
||||||
|
if: |
|
||||||
|
success() ||
|
||||||
|
( failure() && steps.api.conclusion == 'success' )
|
||||||
|
timeout-minutes: 60
|
||||||
|
id: e2e
|
||||||
|
env:
|
||||||
|
USE_WP_ENV: 1
|
||||||
|
E2E_MAX_FAILURES: 15
|
||||||
|
FORCE_COLOR: 1
|
||||||
|
ALLURE_RESULTS_DIR: ${{ env.E2E_ALLURE_RESULTS_DIR }}
|
||||||
|
DEFAULT_TIMEOUT_OVERRIDE: 120000
|
||||||
|
working-directory: plugins/woocommerce
|
||||||
|
run: pnpm exec playwright test --config=tests/e2e-pw/playwright.config.js
|
||||||
|
|
||||||
|
- name: Generate E2E Allure report.
|
||||||
|
if: success() || failure()
|
||||||
|
working-directory: plugins/woocommerce
|
||||||
|
run: pnpm exec allure generate --clean ${{ env.E2E_ALLURE_RESULTS_DIR }} --output ${{ env.E2E_ALLURE_REPORT_DIR }}
|
||||||
|
|
||||||
|
- name: Upload E2E Allure artifacts to bucket
|
||||||
|
if: success() || failure()
|
||||||
|
run: |
|
||||||
|
aws s3 sync ${{ env.E2E_ALLURE_RESULTS_DIR }} \
|
||||||
|
${{ secrets.REPORTS_BUCKET }}/artifacts/${{ github.run_id }}/${{ env.E2E_WP_LATEST_X_ARTIFACT }}/allure-results \
|
||||||
|
--quiet
|
||||||
|
aws s3 sync ${{ env.E2E_ALLURE_REPORT_DIR }} \
|
||||||
|
${{ secrets.REPORTS_BUCKET }}/artifacts/${{ github.run_id }}/${{ env.E2E_WP_LATEST_X_ARTIFACT }}/allure-report \
|
||||||
|
--quiet
|
||||||
|
|
||||||
|
- name: Archive E2E Allure reports
|
||||||
|
if: success() || failure()
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: ${{ env.E2E_WP_LATEST_X_ARTIFACT }}
|
||||||
|
path: |
|
||||||
|
${{ env.E2E_ALLURE_RESULTS_DIR }}
|
||||||
|
${{ env.E2E_ALLURE_REPORT_DIR }}
|
||||||
|
if-no-files-found: ignore
|
||||||
|
retention-days: 5
|
||||||
|
|
||||||
|
- name: Publish E2E Allure report
|
||||||
|
if: success() || failure()
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.REPORTS_TOKEN }}
|
||||||
|
ENV_DESCRIPTION: ${{ matrix.version.env_description }}
|
||||||
|
run: |
|
||||||
|
gh workflow run publish-test-reports-release.yml \
|
||||||
|
-f created_at="${{ needs.get-wp-versions.outputs.created }}" \
|
||||||
|
-f run_id=${{ github.run_id }} \
|
||||||
|
-f run_number=${{ github.run_number }} \
|
||||||
|
-f release_tag=${{ needs.get-wp-versions.outputs.tag }} \
|
||||||
|
-f artifact="${{ env.E2E_WP_LATEST_X_ARTIFACT }}" \
|
||||||
|
-f env_description="${{ env.ENV_DESCRIPTION }}" \
|
||||||
|
-f test_type="e2e" \
|
||||||
|
--repo woocommerce/woocommerce-test-reports
|
||||||
|
|
||||||
|
test-php-versions:
|
||||||
|
name: Test against PHP ${{ matrix.php_version }}
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
needs: [get-tag]
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
php_version: ['7.4', '8.1']
|
||||||
|
env:
|
||||||
|
API_ALLURE_REPORT_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/api-core-tests/test-results/allure-report
|
||||||
|
API_ALLURE_RESULTS_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/api-core-tests/test-results/allure-results
|
||||||
|
API_ARTIFACT: api-php-${{ matrix.php_version }}--run-${{ github.run_number }}
|
||||||
|
E2E_ALLURE_REPORT_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/test-results/allure-report
|
||||||
|
E2E_ALLURE_RESULTS_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/test-results/allure-results
|
||||||
|
E2E_ARTIFACT: e2e-php-${{ matrix.php_version }}--run-${{ github.run_number }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup WooCommerce Monorepo
|
||||||
|
uses: ./.github/actions/setup-woocommerce-monorepo
|
||||||
|
|
||||||
|
- name: Launch WP Env
|
||||||
|
working-directory: plugins/woocommerce
|
||||||
|
env:
|
||||||
|
WP_ENV_PHP_VERSION: ${{ matrix.php_version }}
|
||||||
|
run: pnpm run env:test
|
||||||
|
|
||||||
|
- name: Verify PHP version
|
||||||
|
working-directory: .github/workflows/scripts
|
||||||
|
env:
|
||||||
|
EXPECTED_PHP_VERSION: ${{ matrix.php_version }}
|
||||||
|
run: bash verify-php-version.sh
|
||||||
|
|
||||||
|
- name: Download release zip
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
|
run: gh release download ${{ needs.get-tag.outputs.tag }} --dir tmp
|
||||||
|
|
||||||
|
- name: Replace `plugins/woocommerce` with unzipped woocommerce release build
|
||||||
|
run: unzip -d plugins -o tmp/woocommerce.zip
|
||||||
|
|
||||||
|
- name: Run API tests.
|
||||||
|
id: api
|
||||||
|
working-directory: plugins/woocommerce
|
||||||
|
env:
|
||||||
|
ALLURE_RESULTS_DIR: ${{ env.API_ALLURE_RESULTS_DIR }}
|
||||||
|
run: pnpm exec playwright test --config=tests/api-core-tests/playwright.config.js hello
|
||||||
|
|
||||||
|
- name: Generate API Allure report.
|
||||||
|
if: success() || failure()
|
||||||
|
working-directory: plugins/woocommerce
|
||||||
|
run: pnpm exec allure generate --clean ${{ env.API_ALLURE_RESULTS_DIR }} --output ${{ env.API_ALLURE_REPORT_DIR }}
|
||||||
|
|
||||||
|
- name: Configure AWS credentials
|
||||||
|
if: success() || failure()
|
||||||
|
uses: aws-actions/configure-aws-credentials@v1
|
||||||
|
with:
|
||||||
|
aws-region: ${{ secrets.REPORTS_AWS_REGION }}
|
||||||
|
aws-access-key-id: ${{ secrets.REPORTS_AWS_ACCESS_KEY_ID }}
|
||||||
|
aws-secret-access-key: ${{ secrets.REPORTS_AWS_SECRET_ACCESS_KEY }}
|
||||||
|
|
||||||
|
- name: Upload API Allure artifacts to bucket
|
||||||
|
if: success() || failure()
|
||||||
|
run: |
|
||||||
|
aws s3 sync ${{ env.API_ALLURE_RESULTS_DIR }} \
|
||||||
|
${{ secrets.REPORTS_BUCKET }}/artifacts/${{ github.run_id }}/${{ env.API_ARTIFACT }}/allure-results \
|
||||||
|
--quiet
|
||||||
|
aws s3 sync ${{ env.API_ALLURE_REPORT_DIR }} \
|
||||||
|
${{ secrets.REPORTS_BUCKET }}/artifacts/${{ github.run_id }}/${{ env.API_ARTIFACT }}/allure-report \
|
||||||
|
--quiet
|
||||||
|
|
||||||
|
- name: Publish API Allure report
|
||||||
|
if: success() || failure()
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.REPORTS_TOKEN }}
|
||||||
|
ENV_DESCRIPTION: php-${{ matrix.php_version }}
|
||||||
|
run: |
|
||||||
|
gh workflow run publish-test-reports-release.yml \
|
||||||
|
-f created_at="${{ needs.get-tag.outputs.created }}" \
|
||||||
|
-f run_id=${{ github.run_id }} \
|
||||||
|
-f run_number=${{ github.run_number }} \
|
||||||
|
-f release_tag=${{ needs.get-tag.outputs.tag }} \
|
||||||
|
-f artifact="${{ env.API_ARTIFACT }}" \
|
||||||
|
-f env_description="${{ env.ENV_DESCRIPTION }}" \
|
||||||
|
-f test_type="api" \
|
||||||
|
--repo woocommerce/woocommerce-test-reports
|
||||||
|
|
||||||
|
- name: Archive API Allure reports
|
||||||
|
if: success() || failure()
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: ${{ env.API_ARTIFACT }}
|
||||||
|
path: |
|
||||||
|
${{ env.API_ALLURE_RESULTS_DIR }}
|
||||||
|
${{ env.API_ALLURE_REPORT_DIR }}
|
||||||
|
if-no-files-found: ignore
|
||||||
|
retention-days: 5
|
||||||
|
|
||||||
|
- name: Download and install Chromium browser.
|
||||||
|
working-directory: plugins/woocommerce
|
||||||
|
run: pnpm exec playwright install chromium
|
||||||
|
|
||||||
|
- name: Run E2E tests.
|
||||||
|
if: |
|
||||||
|
success() ||
|
||||||
|
( failure() && steps.api.conclusion == 'success' )
|
||||||
|
timeout-minutes: 60
|
||||||
|
env:
|
||||||
|
USE_WP_ENV: 1
|
||||||
|
E2E_MAX_FAILURES: 15
|
||||||
|
FORCE_COLOR: 1
|
||||||
|
ALLURE_RESULTS_DIR: ${{ env.E2E_ALLURE_RESULTS_DIR }}
|
||||||
|
DEFAULT_TIMEOUT_OVERRIDE: 120000
|
||||||
|
working-directory: plugins/woocommerce
|
||||||
|
run: pnpm exec playwright test --config=tests/e2e-pw/playwright.config.js
|
||||||
|
|
||||||
|
- name: Generate E2E Allure report.
|
||||||
|
if: success() || failure()
|
||||||
|
working-directory: plugins/woocommerce
|
||||||
|
run: pnpm exec allure generate --clean ${{ env.E2E_ALLURE_RESULTS_DIR }} --output ${{ env.E2E_ALLURE_REPORT_DIR }}
|
||||||
|
|
||||||
|
- name: Upload E2E Allure artifacts to bucket
|
||||||
|
if: success() || failure()
|
||||||
|
run: |
|
||||||
|
aws s3 sync ${{ env.E2E_ALLURE_RESULTS_DIR }} \
|
||||||
|
${{ secrets.REPORTS_BUCKET }}/artifacts/${{ github.run_id }}/${{ env.E2E_ARTIFACT }}/allure-results \
|
||||||
|
--quiet
|
||||||
|
aws s3 sync ${{ env.E2E_ALLURE_REPORT_DIR }} \
|
||||||
|
${{ secrets.REPORTS_BUCKET }}/artifacts/${{ github.run_id }}/${{ env.E2E_ARTIFACT }}/allure-report \
|
||||||
|
--quiet
|
||||||
|
|
||||||
|
- name: Archive E2E Allure reports
|
||||||
|
if: success() || failure()
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: ${{ env.E2E_ARTIFACT }}
|
||||||
|
path: |
|
||||||
|
${{ env.E2E_ALLURE_RESULTS_DIR }}
|
||||||
|
${{ env.E2E_ALLURE_REPORT_DIR }}
|
||||||
|
if-no-files-found: ignore
|
||||||
|
retention-days: 5
|
||||||
|
|
||||||
|
- name: Publish E2E Allure report
|
||||||
|
if: success() || failure()
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.REPORTS_TOKEN }}
|
||||||
|
ENV_DESCRIPTION: php-${{ matrix.php_version }}
|
||||||
|
run: |
|
||||||
|
gh workflow run publish-test-reports-release.yml \
|
||||||
|
-f created_at="${{ needs.get-tag.outputs.created }}" \
|
||||||
|
-f run_id=${{ github.run_id }} \
|
||||||
|
-f run_number=${{ github.run_number }} \
|
||||||
|
-f release_tag=${{ needs.get-tag.outputs.tag }} \
|
||||||
|
-f artifact="${{ env.E2E_ARTIFACT }}" \
|
||||||
|
-f env_description="${{ env.ENV_DESCRIPTION }}" \
|
||||||
|
-f test_type="e2e" \
|
||||||
|
--repo woocommerce/woocommerce-test-reports
|
||||||
|
|
|
@ -3,11 +3,17 @@ on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '21 0 * * *'
|
- cron: '21 0 * * *'
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
stale:
|
stale:
|
||||||
if: |
|
if: |
|
||||||
! contains(github.event.issue.labels.*.name, 'type: enhancement')
|
! contains(github.event.issue.labels.*.name, 'type: enhancement')
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/stale@v3
|
- uses: actions/stale@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -6,16 +6,21 @@ on:
|
||||||
- trunk
|
- trunk
|
||||||
paths:
|
paths:
|
||||||
- '**/package.json'
|
- '**/package.json'
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
syncpack:
|
syncpack:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
name: syncpack
|
name: syncpack
|
||||||
steps:
|
steps:
|
||||||
- name: 'Checkout'
|
- name: 'Checkout'
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: 'Setup node'
|
- name: 'Setup node'
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,14 @@ on:
|
||||||
issues:
|
issues:
|
||||||
types: opened
|
types: opened
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
add_label:
|
add_label:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
issues: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions-ecosystem/action-add-labels@v1
|
- uses: actions-ecosystem/action-add-labels@v1
|
||||||
|
|
|
@ -3,6 +3,9 @@ on:
|
||||||
issues:
|
issues:
|
||||||
types:
|
types:
|
||||||
- labeled
|
- labeled
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
add-dev-comment:
|
add-dev-comment:
|
||||||
if: "github.event.label.name == 'needs: developer feedback'"
|
if: "github.event.label.name == 'needs: developer feedback'"
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
name: 'Update contributor feedback labels on comment'
|
name: 'Update contributor feedback labels on comment'
|
||||||
on: 'issue_comment'
|
on: 'issue_comment'
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
feedback:
|
feedback:
|
||||||
if: |
|
if: |
|
||||||
|
@ -10,6 +12,8 @@ jobs:
|
||||||
github.event.issue.state == 'open' &&
|
github.event.issue.state == 'open' &&
|
||||||
contains(github.event.issue.labels.*.name, 'needs: author feedback')
|
contains(github.event.issue.labels.*.name, 'needs: author feedback')
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
steps:
|
steps:
|
||||||
- name: Add has feedback
|
- name: Add has feedback
|
||||||
uses: actions-ecosystem/action-add-labels@v1
|
uses: actions-ecosystem/action-add-labels@v1
|
||||||
|
|
|
@ -72,8 +72,8 @@ yarn.lock
|
||||||
# Editors
|
# Editors
|
||||||
nbproject/private/
|
nbproject/private/
|
||||||
|
|
||||||
# Test Results
|
# E2E and API Test Results
|
||||||
test-results.json
|
test-results
|
||||||
|
|
||||||
# Admin Feature config
|
# Admin Feature config
|
||||||
plugins/woocommerce/includes/react-admin/feature-config.php
|
plugins/woocommerce/includes/react-admin/feature-config.php
|
||||||
|
@ -89,13 +89,6 @@ allure-results
|
||||||
changes.json
|
changes.json
|
||||||
.env
|
.env
|
||||||
|
|
||||||
# Playwright output & working files
|
|
||||||
/plugins/woocommerce/tests/e2e-pw/output
|
|
||||||
/plugins/woocommerce/tests/e2e-pw/report
|
|
||||||
/plugins/woocommerce/tests/e2e-pw/storage
|
|
||||||
/plugins/woocommerce/tests/e2e-pw/test-results.json
|
|
||||||
/plugins/woocommerce/tests/api-core-tests/output
|
|
||||||
|
|
||||||
# Turborepo
|
# Turborepo
|
||||||
.turbo
|
.turbo
|
||||||
|
|
||||||
|
|
23
.syncpackrc
23
.syncpackrc
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"filter": "^(?:react|react-dom|typescript|@typescript-eslint|@types/react).*$",
|
"filter": "^(?:config|react|react-dom|eslint|typescript|@typescript-eslint|@types/react).*$",
|
||||||
"indent": "\t",
|
"indent": "\t",
|
||||||
"overrides": true,
|
"overrides": true,
|
||||||
"peer": true,
|
"peer": true,
|
||||||
|
@ -33,6 +33,15 @@
|
||||||
"**"
|
"**"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"dependencies": [
|
||||||
|
"config"
|
||||||
|
],
|
||||||
|
"packages": [
|
||||||
|
"**"
|
||||||
|
],
|
||||||
|
"pinVersion": "3.3.7"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
"react",
|
"react",
|
||||||
|
@ -51,6 +60,18 @@
|
||||||
"**"
|
"**"
|
||||||
],
|
],
|
||||||
"pinVersion": "^4.8.3"
|
"pinVersion": "^4.8.3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"dependencies": [
|
||||||
|
"eslint"
|
||||||
|
],
|
||||||
|
"dependencyTypes": [
|
||||||
|
"devDependencies"
|
||||||
|
],
|
||||||
|
"packages": [
|
||||||
|
"**"
|
||||||
|
],
|
||||||
|
"pinVersion": "^8.32.0"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,7 +49,10 @@ This repository is not suitable for support. Please don't use our issue tracker
|
||||||
* [The Official WooCommerce Facebook Group](https://www.facebook.com/groups/advanced.woocommerce).
|
* [The Official WooCommerce Facebook Group](https://www.facebook.com/groups/advanced.woocommerce).
|
||||||
* For customizations, you may want to check our list of [WooExperts](https://woocommerce.com/experts/) or [Codeable](https://codeable.io/).
|
* For customizations, you may want to check our list of [WooExperts](https://woocommerce.com/experts/) or [Codeable](https://codeable.io/).
|
||||||
|
|
||||||
Support requests in issues on this repository will be closed on sight.
|
NOTE: Unfortunately, we are unable to honor support requests in issues on this repository; as a result, any requests submitted in this manner will be closed.
|
||||||
|
|
||||||
|
## Community
|
||||||
|
For peer to peer support, real-time announcements, and office hours, please [join our slack community](https://woocommerce.com/community-slack/)!
|
||||||
|
|
||||||
## Contributing to WooCommerce
|
## Contributing to WooCommerce
|
||||||
If you have a patch or have stumbled upon an issue with WooCommerce core, you can contribute this back to the code. Please read our [contributor guidelines](https://github.com/woocommerce/woocommerce/blob/trunk/.github/CONTRIBUTING.md) for more information on how you can do this.
|
If you have a patch or have stumbled upon an issue with WooCommerce core, you can contribute this back to the code. Please read our [contributor guidelines](https://github.com/woocommerce/woocommerce/blob/trunk/.github/CONTRIBUTING.md) for more information on how you can do this.
|
||||||
|
|
|
@ -31,8 +31,9 @@ if [ $? -ne 0 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Ensure both branches are tracked or check-changelogger-use will fail.
|
# Ensure both branches are tracked or check-changelogger-use will fail. Note we pass hooksPath
|
||||||
git checkout $PROTECTED_BRANCH --quiet
|
# to avoid running the pre-commit hook.
|
||||||
git checkout $CURRENT_BRANCH --quiet
|
git -c core.hooksPath=/dev/null checkout $PROTECTED_BRANCH --quiet
|
||||||
|
git -c core.hooksPath=/dev/null checkout $CURRENT_BRANCH --quiet
|
||||||
|
|
||||||
php tools/monorepo/check-changelogger-use.php $PROTECTED_BRANCH $CURRENT_BRANCH
|
php tools/monorepo/check-changelogger-use.php $PROTECTED_BRANCH $CURRENT_BRANCH
|
||||||
|
|
494
changelog.txt
494
changelog.txt
|
@ -1,5 +1,499 @@
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
|
= 7.4.1 2023-03-01 =
|
||||||
|
|
||||||
|
**WooCommerce**
|
||||||
|
|
||||||
|
* Update - Update WooCommerce Blocks to 9.4.4. [#36982](https://github.com/woocommerce/woocommerce/pull/36982)
|
||||||
|
|
||||||
|
|
||||||
|
= 7.4.0 2023-02-14 =
|
||||||
|
|
||||||
|
**WooCommerce**
|
||||||
|
|
||||||
|
* Fix - Add support for sorting by includes param. [#36215](https://github.com/woocommerce/woocommerce/pull/36215)
|
||||||
|
* Fix - Allow product tab navigation without prompting for unsaved changes [#36235](https://github.com/woocommerce/woocommerce/pull/36235)
|
||||||
|
* Fix - Convert HTML to blocks in product variation description [#36241](https://github.com/woocommerce/woocommerce/pull/36241)
|
||||||
|
* Fix - Decode HTML entities in CategoryBreadcrumbs. [#36321](https://github.com/woocommerce/woocommerce/pull/36321)
|
||||||
|
* Fix - Decode HTML entities in CategoryFieldItem. [#36367](https://github.com/woocommerce/woocommerce/pull/36367)
|
||||||
|
* Fix - Ensure order emails are responsive in most email clients, including when the current language is RTL. [#36310](https://github.com/woocommerce/woocommerce/pull/36310)
|
||||||
|
* Fix - Ensures product variation sort order is correctly persisted. [#36343](https://github.com/woocommerce/woocommerce/pull/36343)
|
||||||
|
* Fix - Ensure wc_get_order() works without arguments when HPOS is enabled. [#36496](https://github.com/woocommerce/woocommerce/pull/36496)
|
||||||
|
* Fix - Fix "Save changes?" modal saves the options after selecting the 'Discard' option [#36160](https://github.com/woocommerce/woocommerce/pull/36160)
|
||||||
|
* Fix - Fix attributes/options lists corrupt render #36236 [#36236](https://github.com/woocommerce/woocommerce/pull/36236)
|
||||||
|
* Fix - Fix bug when filtering for customer_id=0. [#36216](https://github.com/woocommerce/woocommerce/pull/36216)
|
||||||
|
* Fix - Fix deprecated usage of ${var} in strings [#36439](https://github.com/woocommerce/woocommerce/pull/36439)
|
||||||
|
* Fix - Fix edit attribute modal terms list [#36186](https://github.com/woocommerce/woocommerce/pull/36186)
|
||||||
|
* Fix - Fixes editing of child product reviews. [#35888](https://github.com/woocommerce/woocommerce/pull/35888)
|
||||||
|
* Fix - Fix for product filters when 'shop' page is the front page. [#36224](https://github.com/woocommerce/woocommerce/pull/36224)
|
||||||
|
* Fix - Fix issue where attribute term dropdown was not adhering to sort order setting. [#36047](https://github.com/woocommerce/woocommerce/pull/36047)
|
||||||
|
* Fix - Fix navigation between variations and tab selection [#36239](https://github.com/woocommerce/woocommerce/pull/36239)
|
||||||
|
* Fix - Fix notices styling in Twenty Twenty-Three [#36475](https://github.com/woocommerce/woocommerce/pull/36475)
|
||||||
|
* Fix - Fix overlapping header elements on product page [#36495](https://github.com/woocommerce/woocommerce/pull/36495)
|
||||||
|
* Fix - Fix product table dropdown issue on mobile. [#36046](https://github.com/woocommerce/woocommerce/pull/36046)
|
||||||
|
* Fix - Fix reordering list items error [#36296](https://github.com/woocommerce/woocommerce/pull/36296)
|
||||||
|
* Fix - Fix REST API order refunds enpoint when HPOS is active, and make v2 orders endpoint compatible with HPOS [#36308](https://github.com/woocommerce/woocommerce/pull/36308)
|
||||||
|
* Fix - Fix settings tables styles [#36531](https://github.com/woocommerce/woocommerce/pull/36531)
|
||||||
|
* Fix - Fix tax task showing as not completed after setting up tax [#36468](https://github.com/woocommerce/woocommerce/pull/36468)
|
||||||
|
* Fix - Fix the signature mismatch affecting wc cli commands ability to fetch user subscription data. [#36240](https://github.com/woocommerce/woocommerce/pull/36240)
|
||||||
|
* Fix - Fix total count query of orders within Analytics reports data store. [#35971](https://github.com/woocommerce/woocommerce/pull/35971)
|
||||||
|
* Fix - Hide Variations section when it is empty [#36202](https://github.com/woocommerce/woocommerce/pull/36202)
|
||||||
|
* Fix - Improve accessibility of the coupon code label, in the context of the cart page. [#36247](https://github.com/woocommerce/woocommerce/pull/36247)
|
||||||
|
* Fix - Improve the way we retrieve the alt text property for product attachments. [#35009](https://github.com/woocommerce/woocommerce/pull/35009)
|
||||||
|
* Fix - Load wc_empty_cart function for REST API calls. [#36182](https://github.com/woocommerce/woocommerce/pull/36182)
|
||||||
|
* Fix - Make HPOS UX more consistent with posts UI (so that same e2e tests passes for both). [#36282](https://github.com/woocommerce/woocommerce/pull/36282)
|
||||||
|
* Fix - Make order edit messages compatible with both posts and theorder object. [#36485](https://github.com/woocommerce/woocommerce/pull/36485)
|
||||||
|
* Fix - Make sure the tracking shortcode only operates in orders with billing information. [#33735](https://github.com/woocommerce/woocommerce/pull/33735)
|
||||||
|
* Fix - Remove persisted query on return to parent product from variation [#36365](https://github.com/woocommerce/woocommerce/pull/36365)
|
||||||
|
* Fix - Reset variation form if a new variation is given [#36078](https://github.com/woocommerce/woocommerce/pull/36078)
|
||||||
|
* Fix - Restore the pre-7.2.0 behavior for single product quantity inputs. [#36460](https://github.com/woocommerce/woocommerce/pull/36460)
|
||||||
|
* Fix - Set child orders to be children of current order parent before deleting for consistency. [#36218](https://github.com/woocommerce/woocommerce/pull/36218)
|
||||||
|
* Fix - Skip custom search for HPOS API queries as it's handled already. [#36213](https://github.com/woocommerce/woocommerce/pull/36213)
|
||||||
|
* Fix - Use Imagick functions to set parallel thread count instead of direct putenv call as suggested in https://core.trac.wordpress.org/ticket/36534#comment:129. [#35339](https://github.com/woocommerce/woocommerce/pull/35339)
|
||||||
|
* Fix - When adjusting download permissions, confirm the child products have not been removed. [#36431](https://github.com/woocommerce/woocommerce/pull/36431)
|
||||||
|
* Add - Add ability to filter variations by local attributes in REST API [#36201](https://github.com/woocommerce/woocommerce/pull/36201)
|
||||||
|
* Add - Add an admin notice about the upcoming PHP version requirement change for PHP 7.2 users [#36444](https://github.com/woocommerce/woocommerce/pull/36444)
|
||||||
|
* Add - Added a slot for extending the app with a homescreen header banner [#36467](https://github.com/woocommerce/woocommerce/pull/36467)
|
||||||
|
* Add - Added a slot for ProgressHeader and ProgressTitle component [#36482](https://github.com/woocommerce/woocommerce/pull/36482)
|
||||||
|
* Add - Add edit button to variations list items [#36079](https://github.com/woocommerce/woocommerce/pull/36079)
|
||||||
|
* Add - Added slot for tasklist completion slotfill [#36487](https://github.com/woocommerce/woocommerce/pull/36487)
|
||||||
|
* Add - Add endpoint to create all product variations [#35980](https://github.com/woocommerce/woocommerce/pull/35980)
|
||||||
|
* Add - Add exit prompt CES for users editing orders when tracking is enabled. [#35762](https://github.com/woocommerce/woocommerce/pull/35762)
|
||||||
|
* Add - Adding delayed spotlight to feedback button on current product page. [#35865](https://github.com/woocommerce/woocommerce/pull/35865)
|
||||||
|
* Add - Adding feedback button to activity bar on classic product page. [#35810](https://github.com/woocommerce/woocommerce/pull/35810)
|
||||||
|
* Add - Adding JS data store for ProductForm. [#36430](https://github.com/woocommerce/woocommerce/pull/36430)
|
||||||
|
* Add - Adding the WooProductSectionItem slot within the product editor general tab. [#36331](https://github.com/woocommerce/woocommerce/pull/36331)
|
||||||
|
* Add - Add initial product form PHP helper class to add new fields. [#36093](https://github.com/woocommerce/woocommerce/pull/36093)
|
||||||
|
* Add - Additional error logging within the CSV Exporter framework. [#34802](https://github.com/woocommerce/woocommerce/pull/34802)
|
||||||
|
* Add - Add multichannel marketing API [#36453](https://github.com/woocommerce/woocommerce/pull/36453)
|
||||||
|
* Add - Add new filter to add additional clauses for SQL statement in Variations report [#36378](https://github.com/woocommerce/woocommerce/pull/36378)
|
||||||
|
* Add - Add new product form API for extending the new Product Form MVP. [#36165](https://github.com/woocommerce/woocommerce/pull/36165)
|
||||||
|
* Add - Add Options section to new product experience form. [#35910](https://github.com/woocommerce/woocommerce/pull/35910)
|
||||||
|
* Add - Add product tour to new product management experience [#36428](https://github.com/woocommerce/woocommerce/pull/36428)
|
||||||
|
* Add - Add product variation form [#36033](https://github.com/woocommerce/woocommerce/pull/36033)
|
||||||
|
* Add - Add product variation General section [#36081](https://github.com/woocommerce/woocommerce/pull/36081)
|
||||||
|
* Add - Add product variation header actions and persistence [#36155](https://github.com/woocommerce/woocommerce/pull/36155)
|
||||||
|
* Add - Add product variation image [#36133](https://github.com/woocommerce/woocommerce/pull/36133)
|
||||||
|
* Add - Add product variation navigation component [#36076](https://github.com/woocommerce/woocommerce/pull/36076)
|
||||||
|
* Add - Add product variations flag to only show work in development [#36311](https://github.com/woocommerce/woocommerce/pull/36311)
|
||||||
|
* Add - Add product variation title to page header [#36085](https://github.com/woocommerce/woocommerce/pull/36085)
|
||||||
|
* Add - Add Product variation visibility toggle [#36020](https://github.com/woocommerce/woocommerce/pull/36020)
|
||||||
|
* Add - Add single product variation sections [#36051](https://github.com/woocommerce/woocommerce/pull/36051)
|
||||||
|
* Add - Adds support for a 'required' argument when invoking `wc_dropdown_variation_attribute_options()`. [#34579](https://github.com/woocommerce/woocommerce/pull/34579)
|
||||||
|
* Add - Add support for sorting by order metadata in HPOS queries. [#36403](https://github.com/woocommerce/woocommerce/pull/36403)
|
||||||
|
* Add - Add WooOnboardingTaskListHeader, woocommerce_admin_experimental_onboarding_tasklists filter, and woocommerce_onboarding_task_list_header Slot to task list [#36519](https://github.com/woocommerce/woocommerce/pull/36519)
|
||||||
|
* Add - Include tax options in pricing section [#36299](https://github.com/woocommerce/woocommerce/pull/36299)
|
||||||
|
* Add - Persist active tab on refresh [#36112](https://github.com/woocommerce/woocommerce/pull/36112)
|
||||||
|
* Add - Persist variations order on product save [#36109](https://github.com/woocommerce/woocommerce/pull/36109)
|
||||||
|
* Add - Product variation quantity status indicator [#35982](https://github.com/woocommerce/woocommerce/pull/35982)
|
||||||
|
* Add - Product variations card should have a fixed height. [#36053](https://github.com/woocommerce/woocommerce/pull/36053)
|
||||||
|
* Add - Remove manage_stock 'parent' value before saving the variation [#36234](https://github.com/woocommerce/woocommerce/pull/36234)
|
||||||
|
* Add - Run ces exit prompt when product import abandoned. [#35996](https://github.com/woocommerce/woocommerce/pull/35996)
|
||||||
|
* Add - Scroll newly added product attribute into view in new product management experience [#36447](https://github.com/woocommerce/woocommerce/pull/36447)
|
||||||
|
* Add - Show product CES footer on product tour close [#36516](https://github.com/woocommerce/woocommerce/pull/36516)
|
||||||
|
* Add - Truncate attribute option name to a max of 32 chars in variations list [#36134](https://github.com/woocommerce/woocommerce/pull/36134)
|
||||||
|
* Add - Trying experimental slot context with product editor fills. [#36333](https://github.com/woocommerce/woocommerce/pull/36333)
|
||||||
|
* Add - Using slotfill to insert attributes section in the product editor. [#36483](https://github.com/woocommerce/woocommerce/pull/36483)
|
||||||
|
* Add - Using slotfill to insert images section in product editor. [#36461](https://github.com/woocommerce/woocommerce/pull/36461)
|
||||||
|
* Update - Update woocommerce-blocks to 9.4.3. [#36736](https://github.com/woocommerce/woocommerce/pull/36736)
|
||||||
|
* Update - Adding WooProductFieldItem slot to product details section. [#36315](https://github.com/woocommerce/woocommerce/pull/36315)
|
||||||
|
* Update - Add permalink_template and generated_slug to products REST API response. [#36497](https://github.com/woocommerce/woocommerce/pull/36497)
|
||||||
|
* Update - Auto generate variations on option changes [#36188](https://github.com/woocommerce/woocommerce/pull/36188)
|
||||||
|
* Update - Bundled version of Action Scheduler updated to 3.5.4. [#36433](https://github.com/woocommerce/woocommerce/pull/36433)
|
||||||
|
* Update - Customers REST API endpoint will now return user metadata only when requester has an administrator role [#36408](https://github.com/woocommerce/woocommerce/pull/36408)
|
||||||
|
* Update - Disable irrelevant product tabs when variations exist [#35939](https://github.com/woocommerce/woocommerce/pull/35939)
|
||||||
|
* Update - Migrate shipping section in product editor to slot fill. [#36534](https://github.com/woocommerce/woocommerce/pull/36534)
|
||||||
|
* Update - Move product management feature flag down to experimental. [#36552](https://github.com/woocommerce/woocommerce/pull/36552)
|
||||||
|
* Update - Reimplementing product details fields in product editor as slot fills. [#36368](https://github.com/woocommerce/woocommerce/pull/36368)
|
||||||
|
* Update - Update api-core-tests readme to include a guide for writing tests [#35978](https://github.com/woocommerce/woocommerce/pull/35978)
|
||||||
|
* Update - Update store-details test snapshot to reflect updated select-control [#35808](https://github.com/woocommerce/woocommerce/pull/35808)
|
||||||
|
* Update - Update WooCommerce Blocks to 9.4.0 [#36524](https://github.com/woocommerce/woocommerce/pull/36524)
|
||||||
|
* Update - Update WooCommerce Blocks to 9.4.1 [#36553](https://github.com/woocommerce/woocommerce/pull/36553)
|
||||||
|
* Update - Update WooCommerce Blocks to 9.4.2 [#36624](https://github.com/woocommerce/woocommerce/pull/36624)
|
||||||
|
* Dev - Add advanced setting option [#36380](https://github.com/woocommerce/woocommerce/pull/36380)
|
||||||
|
* Dev - Add experimental SlotFill for task list footer [#36527](https://github.com/woocommerce/woocommerce/pull/36527)
|
||||||
|
* Dev - Cleanup product task experiment [#35950](https://github.com/woocommerce/woocommerce/pull/35950)
|
||||||
|
* Dev - Consistent folder structure for E2E and API test results [#35907](https://github.com/woocommerce/woocommerce/pull/35907)
|
||||||
|
* Dev - Fix docblock type annotations for $meta_value. [#33853](https://github.com/woocommerce/woocommerce/pull/33853)
|
||||||
|
* Dev - Fix flakiness of the `can save industry changes when navigating back to "Store Details"` E2E test. [#36260](https://github.com/woocommerce/woocommerce/pull/36260)
|
||||||
|
* Dev - Make shopper tests passable on daily smoke test site. [#35873](https://github.com/woocommerce/woocommerce/pull/35873)
|
||||||
|
* Dev - Move product attribute fetching logic into a separate hook [#36354](https://github.com/woocommerce/woocommerce/pull/36354)
|
||||||
|
* Dev - Update TaskLists::add_task() to reflect changes in TaskList::add_task() [#36104](https://github.com/woocommerce/woocommerce/pull/36104)
|
||||||
|
* Dev - Update the browserslist config for legacy client JS to match Wordpress. [#36264](https://github.com/woocommerce/woocommerce/pull/36264)
|
||||||
|
* Dev - Upgrade PHPUnit to v8 [#36273](https://github.com/woocommerce/woocommerce/pull/36273)
|
||||||
|
* Tweak - Corrects a typo in the i18n/states.php file, relating to our list of Iranian states. [#36457](https://github.com/woocommerce/woocommerce/pull/36457)
|
||||||
|
* Tweak - Derive product type from product attributes [#36243](https://github.com/woocommerce/woocommerce/pull/36243)
|
||||||
|
* Tweak - Fix typo in a function comment. [#36122](https://github.com/woocommerce/woocommerce/pull/36122)
|
||||||
|
* Tweak - Fix units in function doc comment [#36353](https://github.com/woocommerce/woocommerce/pull/36353)
|
||||||
|
* Tweak - Make related products check more robust against wrong transients. [#34742](https://github.com/woocommerce/woocommerce/pull/34742)
|
||||||
|
* Tweak - Makes it possible to use an `add_meta_boxes_<SCREEN_ID>` style hook in the HPOS editor, for parity with the traditional post editor. [#35999](https://github.com/woocommerce/woocommerce/pull/35999)
|
||||||
|
* Tweak - Minor adjustments to the ProductForm API [#36414](https://github.com/woocommerce/woocommerce/pull/36414)
|
||||||
|
* Tweak - Redirect to new product experience when in experiment group [#36381](https://github.com/woocommerce/woocommerce/pull/36381)
|
||||||
|
* Tweak - Refactor AttributeField into sub-components. [#35997](https://github.com/woocommerce/woocommerce/pull/35997)
|
||||||
|
* Tweak - Update product links when new product management experience is enabled [#36382](https://github.com/woocommerce/woocommerce/pull/36382)
|
||||||
|
* Tweak - Updates and improves the docblocks for methods WC_Order::get_total() and WC_Order::get_subtotal(). [#34385](https://github.com/woocommerce/woocommerce/pull/34385)
|
||||||
|
* Tweak - Validation of Norweigan postcodes has been added. [#36277](https://github.com/woocommerce/woocommerce/pull/36277)
|
||||||
|
* Performance - Speed up HPOS search query by using group by instead of distinct. [#35897](https://github.com/woocommerce/woocommerce/pull/35897)
|
||||||
|
* Enhancement - Add context to countries shipping to prefix [#36254](https://github.com/woocommerce/woocommerce/pull/36254)
|
||||||
|
* Enhancement - Adds new order status filters for bacs and cheque email instructions. [#35849](https://github.com/woocommerce/woocommerce/pull/35849)
|
||||||
|
* Enhancement - Improves handling of the single product page quantity selector, in relation to variable products. [#36087](https://github.com/woocommerce/woocommerce/pull/36087)
|
||||||
|
* Enhancement - Remove default WooCommerce button styles if using a block theme which adds button styles in theme.json [#36225](https://github.com/woocommerce/woocommerce/pull/36225)
|
||||||
|
|
||||||
|
|
||||||
|
= 7.3.0 2023-01-10 =
|
||||||
|
|
||||||
|
**WooCommerce**
|
||||||
|
|
||||||
|
* Fix - Remove redundant Pinterest plugin from marketing task [#36158](https://github.com/woocommerce/woocommerce/pull/36158)
|
||||||
|
* Fix - Corrects a hard-coded reference to the WP post meta table within the HPOS Migration Helper, that would fail on some sites. [#36100](https://github.com/woocommerce/woocommerce/pull/36100)
|
||||||
|
* Fix - Add a blank space between the emoji and the message within a notice popup [#35698](https://github.com/woocommerce/woocommerce/pull/35698)
|
||||||
|
* Fix - Add a data migration for changed New Zealand and Ukraine state codes [#35960](https://github.com/woocommerce/woocommerce/pull/35960)
|
||||||
|
* Fix - Add back missing scss files from assets. [#35624](https://github.com/woocommerce/woocommerce/pull/35624)
|
||||||
|
* Fix - Address HPOS synchronization issues relating to the deletion of orders. [#35723](https://github.com/woocommerce/woocommerce/pull/35723)
|
||||||
|
* Fix - Avoid a potential fatal error when forming edit-order URLs. [#35995](https://github.com/woocommerce/woocommerce/pull/35995)
|
||||||
|
* Fix - Fix call of array_key_exists in SSR. [#35598](https://github.com/woocommerce/woocommerce/pull/35598)
|
||||||
|
* Fix - Fix ellipsis dropdown menu is mostly hidden within the task list [#35949](https://github.com/woocommerce/woocommerce/pull/35949)
|
||||||
|
* Fix - Fixes fatal error resulting from translating the WooCommerce main menu. [#35695](https://github.com/woocommerce/woocommerce/pull/35695)
|
||||||
|
* Fix - Fix get orders REST API endpoint when using 'search' or 'parent' and HPOS is enabled [#35818](https://github.com/woocommerce/woocommerce/pull/35818)
|
||||||
|
* Fix - Fix handling of non-ASCII product attributes when the attributes lookup table is in use [#34432](https://github.com/woocommerce/woocommerce/pull/34432)
|
||||||
|
* Fix - Fix handling of statuses in orders list table (HPOS). [#35370](https://github.com/woocommerce/woocommerce/pull/35370)
|
||||||
|
* Fix - Fix logo icon for Google Listings and Ads. [#35732](https://github.com/woocommerce/woocommerce/pull/35732)
|
||||||
|
* Fix - Fix product tab to be shown on production build [#35976](https://github.com/woocommerce/woocommerce/pull/35976)
|
||||||
|
* Fix - Fix regexp used for filtering country dropdown on the store details step #35941 [#35942](https://github.com/woocommerce/woocommerce/pull/35942)
|
||||||
|
* Fix - Fix the gap in the featured product checkbox [#35710](https://github.com/woocommerce/woocommerce/pull/35710)
|
||||||
|
* Fix - Fix tooltips not appearing in the orders list admin page. [#35638](https://github.com/woocommerce/woocommerce/pull/35638)
|
||||||
|
* Fix - Fix unread note count on inbox panel [#35396](https://github.com/woocommerce/woocommerce/pull/35396)
|
||||||
|
* Fix - Fix unsaved modal propmt to not be shown during form submission [#35657](https://github.com/woocommerce/woocommerce/pull/35657)
|
||||||
|
* Fix - Fix version in template and function docblocks. [#35473](https://github.com/woocommerce/woocommerce/pull/35473)
|
||||||
|
* Fix - Fix WooCommerce Admin client React build warnings and remove unnecessary scss imports. [#35930](https://github.com/woocommerce/woocommerce/pull/35930)
|
||||||
|
* Fix - Fix wrong query param in onboarding product api call [#35926](https://github.com/woocommerce/woocommerce/pull/35926)
|
||||||
|
* Fix - If order types have not been registered, do not attempt to count orders. [#35820](https://github.com/woocommerce/woocommerce/pull/35820)
|
||||||
|
* Fix - Make the 'unprotected upload directory' notice dismissable. [#33544](https://github.com/woocommerce/woocommerce/pull/33544)
|
||||||
|
* Fix - Update Playwright to 1.28.0 and explicitly set PHP version in GH action [#35679](https://github.com/woocommerce/woocommerce/pull/35679)
|
||||||
|
* Fix - When importing product CSV, ensure line breaks within header columns do not break the import process. [#35880](https://github.com/woocommerce/woocommerce/pull/35880)
|
||||||
|
* Add - Add CES exit prompt for setting pages, when tracking is enabled. [#35761](https://github.com/woocommerce/woocommerce/pull/35761)
|
||||||
|
* Add - Add CES feedback functionality to the share feedback button within the Product MVP. [#35690](https://github.com/woocommerce/woocommerce/pull/35690)
|
||||||
|
* Add - Add Denmark postcode validation. [#35653](https://github.com/woocommerce/woocommerce/pull/35653)
|
||||||
|
* Add - Add exit prompt logic to get feedback if users leave product pages without saving when tracking is enabled. [#35728](https://github.com/woocommerce/woocommerce/pull/35728)
|
||||||
|
* Add - Add FormFileUpload component [#35358](https://github.com/woocommerce/woocommerce/pull/35358)
|
||||||
|
* Add - Add HPOS information to WC Tracker. [#35446](https://github.com/woocommerce/woocommerce/pull/35446)
|
||||||
|
* Add - Add new option to create new attribute within add attribute modal. [#35100](https://github.com/woocommerce/woocommerce/pull/35100)
|
||||||
|
* Add - Add new product management breadcrumbs to header [#35596](https://github.com/woocommerce/woocommerce/pull/35596)
|
||||||
|
* Add - Add new Product MVP CES footer for gathering feedback on the new product management screen. [#35652](https://github.com/woocommerce/woocommerce/pull/35652)
|
||||||
|
* Add - Add one-click installation to recommended extensions in Marketing page. [#35542](https://github.com/woocommerce/woocommerce/pull/35542)
|
||||||
|
* Add - Add pagination to variations list [#35979](https://github.com/woocommerce/woocommerce/pull/35979)
|
||||||
|
* Add - Add product settings menu in header [#35592](https://github.com/woocommerce/woocommerce/pull/35592)
|
||||||
|
* Add - Add product tab headers and move sections to respective tabs [#35862](https://github.com/woocommerce/woocommerce/pull/35862)
|
||||||
|
* Add - Add product variations list to new product management experience [#35889](https://github.com/woocommerce/woocommerce/pull/35889)
|
||||||
|
* Add - Add support for custom order types in HPOS admin UI. [#35658](https://github.com/woocommerce/woocommerce/pull/35658)
|
||||||
|
* Add - Add the woocommerce_order_applied_coupon hook [#35616](https://github.com/woocommerce/woocommerce/pull/35616)
|
||||||
|
* Add - Add tracks events for 'product_view_product_click' and 'product_view_product_dismiss' [#35582](https://github.com/woocommerce/woocommerce/pull/35582)
|
||||||
|
* Add - Introduces action `woocommerce_order_list_table_restrict_manage_orders` as an equivalent of the legacy `restrict_manage_posts` hook. [#36000](https://github.com/woocommerce/woocommerce/pull/36000)
|
||||||
|
* Add - Open categories menu list when the user focus the category field [#35606](https://github.com/woocommerce/woocommerce/pull/35606)
|
||||||
|
* Update - Match country name or ' - region' when filtering country select control #36120 [#36159](https://github.com/woocommerce/woocommerce/pull/36159)
|
||||||
|
* Update - Update WooCommerce Blocks to 9.1.3 [#36125](https://github.com/woocommerce/woocommerce/pull/36125)
|
||||||
|
* Update - Adapt the summary text in the product management form. [#35717](https://github.com/woocommerce/woocommerce/pull/35717)
|
||||||
|
* Update - Add Codisto for WooCommerce to free extensions list [#36009](https://github.com/woocommerce/woocommerce/pull/36009)
|
||||||
|
* Update - Add experimental open menu on focus option to the attribute and attribute term input fields. [#35758](https://github.com/woocommerce/woocommerce/pull/35758)
|
||||||
|
* Update - Add missing tracks events [#35262](https://github.com/woocommerce/woocommerce/pull/35262)
|
||||||
|
* Update - Add Pinterest for WooCommerce to free extensions list [#36003](https://github.com/woocommerce/woocommerce/pull/36003)
|
||||||
|
* Update - Automatically create the custom order tables if the corresponding feature is enabled [#35357](https://github.com/woocommerce/woocommerce/pull/35357)
|
||||||
|
* Update - Disable TikTok in the OBW [#35924](https://github.com/woocommerce/woocommerce/pull/35924)
|
||||||
|
* Update - Include taxes migration in MigrationHelper::migrate_country_states [#35967](https://github.com/woocommerce/woocommerce/pull/35967)
|
||||||
|
* Update - Increase consistency in relation to the way taxonomy term ordering is persisted. [#34645](https://github.com/woocommerce/woocommerce/pull/34645)
|
||||||
|
* Update - Make product form header and actions responsive for smaller viewports [#35623](https://github.com/woocommerce/woocommerce/pull/35623)
|
||||||
|
* Update - Remove welcome to woocommerce store note [#35342](https://github.com/woocommerce/woocommerce/pull/35342)
|
||||||
|
* Update - Surface Amazon Pay as "Additional Payment Options" for UK/EU/JP [#35726](https://github.com/woocommerce/woocommerce/pull/35726)
|
||||||
|
* Update - Update api-core-tests readme to reference correct directory for .env file [#35759](https://github.com/woocommerce/woocommerce/pull/35759)
|
||||||
|
* Update - Update country data in api-core-tests to prevent numerous test data updates [#35557](https://github.com/woocommerce/woocommerce/pull/35557)
|
||||||
|
* Update - update FAQ in readme consumed by .org [#35696](https://github.com/woocommerce/woocommerce/pull/35696)
|
||||||
|
* Update - Update WooCommerce Blocks to 9.1.1 [#36004](https://github.com/woocommerce/woocommerce/pull/36004)
|
||||||
|
* Update - Update wording for In-App Marketplace tour. [#35929](https://github.com/woocommerce/woocommerce/pull/35929)
|
||||||
|
* Update - Updating all CES events to support two questions in modal. [#35680](https://github.com/woocommerce/woocommerce/pull/35680)
|
||||||
|
* Dev - Allow the user to select multiple images in the Media Library [#35722](https://github.com/woocommerce/woocommerce/pull/35722)
|
||||||
|
* Dev - Check if blocks have been added to rich text editors before updating value [#35626](https://github.com/woocommerce/woocommerce/pull/35626)
|
||||||
|
* Dev - Make e2e tests compatible with nightly and release smoke test sites. [#35492](https://github.com/woocommerce/woocommerce/pull/35492)
|
||||||
|
* Dev - Move file picker by clicking card into the MediaUploader component [#35738](https://github.com/woocommerce/woocommerce/pull/35738)
|
||||||
|
* Dev - Update the "can manually add a variation" E2E test to prevent automatic creation of variations from all attributes. [#36008](https://github.com/woocommerce/woocommerce/pull/36008)
|
||||||
|
* Tweak - Avoid deprecation notices under PHP 8.1 when calling wp_parse_url(). [#35648](https://github.com/woocommerce/woocommerce/pull/35648)
|
||||||
|
* Tweak - Correct the usage of 'address' and 'addresses' within `wc_get_account_menu_items()`. [#32026](https://github.com/woocommerce/woocommerce/pull/32026)
|
||||||
|
* Tweak - Create ProductForm component to merge similar structures between AddProductPage and EditProductPage [#35783](https://github.com/woocommerce/woocommerce/pull/35783)
|
||||||
|
* Tweak - Improves efficiency of code responsible for determining plugin IDs (during feature compatibility checks). [#35727](https://github.com/woocommerce/woocommerce/pull/35727)
|
||||||
|
* Tweak - Make the formatted shipping address available via the `woocommerce_cart_no_shipping_available_html` hook. [#30723](https://github.com/woocommerce/woocommerce/pull/30723)
|
||||||
|
* Tweak - Make the OrdersTableDataStore init_order_record() and get_order_data_for_ids() functions protected rather than private [#35829](https://github.com/woocommerce/woocommerce/pull/35829)
|
||||||
|
* Tweak - Move CSS about notice outside of .woocommerce class scope [#35912](https://github.com/woocommerce/woocommerce/pull/35912)
|
||||||
|
* Tweak - Resolve an error in the product tracking code by testing to see if the `post_type` query var is set before checking its value. [#34501](https://github.com/woocommerce/woocommerce/pull/34501)
|
||||||
|
* Tweak - Simplify wording within the customer emails for on-hold orders. [#31886](https://github.com/woocommerce/woocommerce/pull/31886)
|
||||||
|
* Tweak - WooCommerce has now been tested up to WordPress 6.1.x. [#35985](https://github.com/woocommerce/woocommerce/pull/35985)
|
||||||
|
* Performance - Split CALC_FOUND_ROW query into seperate count query for better performance. [#35468](https://github.com/woocommerce/woocommerce/pull/35468)
|
||||||
|
* Enhancement - Add a bottom padding to the whole form [#35721](https://github.com/woocommerce/woocommerce/pull/35721)
|
||||||
|
* Enhancement - Add a confirmation modal when the user tries to navigate away with unsaved changes [#35625](https://github.com/woocommerce/woocommerce/pull/35625)
|
||||||
|
* Enhancement - Add a default placeholder title for newly added attributes and always show remove button for attributes [#35904](https://github.com/woocommerce/woocommerce/pull/35904)
|
||||||
|
* Enhancement - Add help tip for Product Image and Product Gallery meta boxes [#35834](https://github.com/woocommerce/woocommerce/pull/35834)
|
||||||
|
* Enhancement - Add support for product attribute taxonomy template [#35617](https://github.com/woocommerce/woocommerce/pull/35617)
|
||||||
|
* Enhancement - Add warning banner that informs the user if they have conflicting tax display settings [#36010](https://github.com/woocommerce/woocommerce/pull/36010)
|
||||||
|
* Enhancement - Change the width of pricing fields, SKU and Shipping Class to 50% in big screens (>960px) in new product management experience [#35545](https://github.com/woocommerce/woocommerce/pull/35545)
|
||||||
|
* Enhancement - Fix price field currency symbol position [#35718](https://github.com/woocommerce/woocommerce/pull/35718)
|
||||||
|
* Enhancement - Improve element stacking in modals on tablet and mobile [#35733](https://github.com/woocommerce/woocommerce/pull/35733)
|
||||||
|
* Security - Customers REST API endpoint will now return user metadata only when requester has an administrator role [#36408](https://github.com/woocommerce/woocommerce/pull/36408).
|
||||||
|
|
||||||
|
= 7.2.3 2023-1-9
|
||||||
|
|
||||||
|
**WooCommerce Blocks 8.9.4**
|
||||||
|
|
||||||
|
* Fix - fatal error in WordPress 5.8 when creating a post or page. #7496
|
||||||
|
* Fix - hangs in the block editor with WordPress 5.8. #8095
|
||||||
|
* Fix - Filter by Attribute block crashing in the editor of WordPress 5.8. #8101
|
||||||
|
|
||||||
|
= 7.2.2 2022-12-21 =
|
||||||
|
|
||||||
|
** WooCommerce**
|
||||||
|
|
||||||
|
* Fix - Corrects a hard-coded reference to the WP post meta table within the HPOS Migration Helper, that would fail on some sites. [#36100](https://github.com/woocommerce/woocommerce/pull/36100)
|
||||||
|
|
||||||
|
= 7.2.1 2022-12-16 =
|
||||||
|
|
||||||
|
**WooCommerce**
|
||||||
|
|
||||||
|
* Update - Include taxes migration in MigrationHelper::migrate_country_states [#35967](https://github.com/woocommerce/woocommerce/pull/35967)
|
||||||
|
|
||||||
|
= 7.2.0 2022-12-14 =
|
||||||
|
|
||||||
|
**WooCommerce**
|
||||||
|
|
||||||
|
* Fix - Corrects a hard-coded reference to the WP post meta table within the HPOS Migration Helper, that would fail on some sites. [#36100](https://github.com/woocommerce/woocommerce/pull/36100)
|
||||||
|
* Fix - Drop usage of WP 5.9 function in the product quantity selector template. [#36054](https://github.com/woocommerce/woocommerce/pull/36054)
|
||||||
|
* Fix - Add a data migration for changed New Zealand and Ukraine state codes [#35669](https://github.com/woocommerce/woocommerce/pull/35669)
|
||||||
|
* Fix - Fix error in onboarding wizard when plugin is activated but includes unexpected output. [#35866](https://github.com/woocommerce/woocommerce/pull/35866)
|
||||||
|
* Fix - Increased margin so that overflow modal content doesn't clip header [#35780](https://github.com/woocommerce/woocommerce/pull/35780)
|
||||||
|
* Fix - Added default additional content to emails via filter woocommerce_email_additional_content_. [#35195](https://github.com/woocommerce/woocommerce/pull/35195)
|
||||||
|
* Fix - Corrects the currency symbol for Libyan Dinar (LYD). [#35395](https://github.com/woocommerce/woocommerce/pull/35395)
|
||||||
|
* Fix - Fix 'Invalid payment method' error upon double click on Delete button of Payment methods table [#30884](https://github.com/woocommerce/woocommerce/pull/30884)
|
||||||
|
* Fix - Fix bg color that was not covering the full page [#35476](https://github.com/woocommerce/woocommerce/pull/35476)
|
||||||
|
* Fix - Fix class name for class FirstDownlaodableProduct [#35383](https://github.com/woocommerce/woocommerce/pull/35383)
|
||||||
|
* Fix - Fixed "Unsupported operand types" error. [#34327](https://github.com/woocommerce/woocommerce/pull/34327)
|
||||||
|
* Fix - Fix inconsistent return type of class WC_Shipping_Rate->get_shipping_tax() [#35453](https://github.com/woocommerce/woocommerce/pull/35453)
|
||||||
|
* Fix - Fix invalid wcadmin_install_plugin_error event props [#35411](https://github.com/woocommerce/woocommerce/pull/35411)
|
||||||
|
* Fix - Fix JS error when the business step is accessed directly via URL without completing the previous steps [#35045](https://github.com/woocommerce/woocommerce/pull/35045)
|
||||||
|
* Fix - fix popper position for in-app marketplace tour [#35278](https://github.com/woocommerce/woocommerce/pull/35278)
|
||||||
|
* Fix - Fix WooCommerce icons not loading in the site editor. [#35532](https://github.com/woocommerce/woocommerce/pull/35532)
|
||||||
|
* Fix - FQCN for WP_Error in PHPDoc. [#35305](https://github.com/woocommerce/woocommerce/pull/35305)
|
||||||
|
* Fix - Make the user search metabox for orders show the same information for the loaded user and for search results [#35244](https://github.com/woocommerce/woocommerce/pull/35244)
|
||||||
|
* Fix - Override filter_meta_data method, since it should be a no-op anyway. [#35192](https://github.com/woocommerce/woocommerce/pull/35192)
|
||||||
|
* Fix - Remove the direct dependency on `$_POST` when validating checkout data. [#35329](https://github.com/woocommerce/woocommerce/pull/35329)
|
||||||
|
* Fix - Revert change that auto collapses the product short description field. [#35213](https://github.com/woocommerce/woocommerce/pull/35213)
|
||||||
|
* Fix - Skip flaky settings API test [#35338](https://github.com/woocommerce/woocommerce/pull/35338)
|
||||||
|
* Fix - Update Playwright from 1.26.1 to 1.27.1 [#35106](https://github.com/woocommerce/woocommerce/pull/35106)
|
||||||
|
* Fix - When the minimum and maximum quantity are identical, render the quantity input and set it to disabled. [#34282](https://github.com/woocommerce/woocommerce/pull/34282)
|
||||||
|
* Add - Add "Empty Trash" functionality to HPOS list table. [#35489](https://github.com/woocommerce/woocommerce/pull/35489)
|
||||||
|
* Add - Add add attribute modal to the attribute field in the new product management MVP [#34999](https://github.com/woocommerce/woocommerce/pull/34999)
|
||||||
|
* Add - Add add new option for the category dropdown within the product MVP [#35132](https://github.com/woocommerce/woocommerce/pull/35132)
|
||||||
|
* Add - Add contextual product more menu [#35447](https://github.com/woocommerce/woocommerce/pull/35447)
|
||||||
|
* Add - Added a guided tour for WooCommerce Extensions page [#35278](https://github.com/woocommerce/woocommerce/pull/35278)
|
||||||
|
* Add - Added npm script for Playwright API Core Tests [#35283](https://github.com/woocommerce/woocommerce/pull/35283)
|
||||||
|
* Add - Added states for Senegal. [#35199](https://github.com/woocommerce/woocommerce/pull/35199)
|
||||||
|
* Add - Added the "Tour the WooCommerce Marketplace" task to onboarding tasks list [#35278](https://github.com/woocommerce/woocommerce/pull/35278)
|
||||||
|
* Add - Added Ukrainian subdivisions. [#35493](https://github.com/woocommerce/woocommerce/pull/35493)
|
||||||
|
* Add - Adding attribute edit modal for new product screen. [#35269](https://github.com/woocommerce/woocommerce/pull/35269)
|
||||||
|
* Add - Add manual stock management section to product management experience [#35047](https://github.com/woocommerce/woocommerce/pull/35047)
|
||||||
|
* Add - Add new Category dropdown field to the new Product Management screen. [#34400](https://github.com/woocommerce/woocommerce/pull/34400)
|
||||||
|
* Add - add new track events for in-app marketplace tour [#35278](https://github.com/woocommerce/woocommerce/pull/35278)
|
||||||
|
* Add - Add option and modal to create new attribute terms within MVP attribute modal. [#35131](https://github.com/woocommerce/woocommerce/pull/35131)
|
||||||
|
* Add - Add placeholder to description field [#35286](https://github.com/woocommerce/woocommerce/pull/35286)
|
||||||
|
* Add - Add playwright api-core-tests for data crud operations [#35347](https://github.com/woocommerce/woocommerce/pull/35347)
|
||||||
|
* Add - Add playwright api-core-tests for payment gateways crud operations [#35279](https://github.com/woocommerce/woocommerce/pull/35279)
|
||||||
|
* Add - Add playwright api-core-tests for product reviews crud operations [#35163](https://github.com/woocommerce/woocommerce/pull/35163)
|
||||||
|
* Add - Add playwright api-core-tests for product variations crud operations [#35355](https://github.com/woocommerce/woocommerce/pull/35355)
|
||||||
|
* Add - Add playwright api-core-tests for reports crud operations [#35388](https://github.com/woocommerce/woocommerce/pull/35388)
|
||||||
|
* Add - Add playwright api-core-tests for settingss crud operations [#35253](https://github.com/woocommerce/woocommerce/pull/35253)
|
||||||
|
* Add - Add playwright api-core-tests for system status crud operations [#35254](https://github.com/woocommerce/woocommerce/pull/35254)
|
||||||
|
* Add - Add playwright api-core-tests for webhooks crud operations [#35292](https://github.com/woocommerce/woocommerce/pull/35292)
|
||||||
|
* Add - Add Product description title in old editor for clarification. [#35154](https://github.com/woocommerce/woocommerce/pull/35154)
|
||||||
|
* Add - Add product inventory advanced section [#35164](https://github.com/woocommerce/woocommerce/pull/35164)
|
||||||
|
* Add - Add product management description to new product management experience [#34961](https://github.com/woocommerce/woocommerce/pull/34961)
|
||||||
|
* Add - Add product state badge to product form header [#35460](https://github.com/woocommerce/woocommerce/pull/35460)
|
||||||
|
* Add - Add product title to header when available [#35431](https://github.com/woocommerce/woocommerce/pull/35431)
|
||||||
|
* Add - Add scheduled sale support to new product edit page. [#34538](https://github.com/woocommerce/woocommerce/pull/34538)
|
||||||
|
* Add - Adds new Inbox Note to provide more information about WooCommerce Payments to users who dismiss the WCPay promo but say that they want more information in the exit survey. [#35581](https://github.com/woocommerce/woocommerce/pull/35581)
|
||||||
|
* Add - Add summary to new product page experience [#35201](https://github.com/woocommerce/woocommerce/pull/35201)
|
||||||
|
* Add - Include order datastore information in status report. [#35487](https://github.com/woocommerce/woocommerce/pull/35487)
|
||||||
|
* Add - Make it possible to add custom bulk action handling to the admin order list screen (when HPOS is enabled). [#35442](https://github.com/woocommerce/woocommerce/pull/35442)
|
||||||
|
* Add - Set In-App Marketplace Tour as completed on tour close [#35278](https://github.com/woocommerce/woocommerce/pull/35278)
|
||||||
|
* Add - When custom order tables are not authoritative, admin UI requests will be redirected to the matching legacy order screen as appropriate. [#35463](https://github.com/woocommerce/woocommerce/pull/35463)
|
||||||
|
* Update - Woo Blocks 8.9.2 [#35805](https://github.com/woocommerce/woocommerce/pull/35805)
|
||||||
|
* Update - Comment: Update WooCommerce Blocks to 8.7.2 [#35101](https://github.com/woocommerce/woocommerce/pull/35101)
|
||||||
|
* Update - Comment: Update WooCommerce Blocks to 8.7.3 [#35219](https://github.com/woocommerce/woocommerce/pull/35219)
|
||||||
|
* Update - Comment: Update WooCommerce Blocks to 8.9.1 [#35564](https://github.com/woocommerce/woocommerce/pull/35564)
|
||||||
|
* Update - CustomOrdersTableController::custom_orders_table_usage_is_enabled returns now false if the HPOS feature is disabled [#35597](https://github.com/woocommerce/woocommerce/pull/35597)
|
||||||
|
* Update - Disable inventory stock toggle when product stock management is disabled [#35059](https://github.com/woocommerce/woocommerce/pull/35059)
|
||||||
|
* Update - Improve the loading time of WooCommerce setup widget for large databases [#35334](https://github.com/woocommerce/woocommerce/pull/35334)
|
||||||
|
* Update - Permit showing a guided tour for WooCommerce Extensions page on desktops only [#35278](https://github.com/woocommerce/woocommerce/pull/35278)
|
||||||
|
* Update - Remove adding and managing products note [#35319](https://github.com/woocommerce/woocommerce/pull/35319)
|
||||||
|
* Update - Remove first downloadable product note [#35318](https://github.com/woocommerce/woocommerce/pull/35318)
|
||||||
|
* Update - Remove InsightFirstProductAndPayment note [#35309](https://github.com/woocommerce/woocommerce/pull/35309)
|
||||||
|
* Update - Remove insight on first sale note [#35341](https://github.com/woocommerce/woocommerce/pull/35341)
|
||||||
|
* Update - Remove manage store activity note [#35320](https://github.com/woocommerce/woocommerce/pull/35320)
|
||||||
|
* Update - Remove Popover.Slot usage and make use of exported SelectControlMenuSlot. [#35353](https://github.com/woocommerce/woocommerce/pull/35353)
|
||||||
|
* Update - Remove update store details note [#35322](https://github.com/woocommerce/woocommerce/pull/35322)
|
||||||
|
* Update - Update Array checks in playwright api-core-tests as some of the existing tests would produce false positives [#35462](https://github.com/woocommerce/woocommerce/pull/35462)
|
||||||
|
* Update - Update playwright api-core-tests for shipping crud operations [#35332](https://github.com/woocommerce/woocommerce/pull/35332)
|
||||||
|
* Update - Update playwright api-core-tests to execute for both base test environment and base JN environment with WooCommerce [#35522](https://github.com/woocommerce/woocommerce/pull/35522)
|
||||||
|
* Update - Update products task list UI [#35611](https://github.com/woocommerce/woocommerce/pull/35611)
|
||||||
|
* Update - Update ShippingLabelBanner add_meta_box action to only trigger on shop_order pages and remove deprecated function call. [#35212](https://github.com/woocommerce/woocommerce/pull/35212)
|
||||||
|
* Update - Update WooCommerce Blocks to 8.9.0 [#35521](https://github.com/woocommerce/woocommerce/pull/35521)
|
||||||
|
* Dev - Add variation price shortcut [#34948](https://github.com/woocommerce/woocommerce/pull/34948)
|
||||||
|
* Dev - Cleanup and deprecate unused Task properties and methods [#35450](https://github.com/woocommerce/woocommerce/pull/35450)
|
||||||
|
* Dev - Enable Playwright tests on Daily Smoke Test workflow and upload its Allure reports to S3 bucket. [#35114](https://github.com/woocommerce/woocommerce/pull/35114)
|
||||||
|
* Dev - Move product action buttons to header menu [#35214](https://github.com/woocommerce/woocommerce/pull/35214)
|
||||||
|
* Dev - Revert the changes introduced in PR #35282 [#35337](https://github.com/woocommerce/woocommerce/pull/35337)
|
||||||
|
* Dev - Show a dismissible snackbar if the server responds with an error [#35160](https://github.com/woocommerce/woocommerce/pull/35160)
|
||||||
|
* Dev - Update api-core-tests readme for consistency with new command and updates to other commands too. [#35303](https://github.com/woocommerce/woocommerce/pull/35303)
|
||||||
|
* Dev - Updated the COT plugin URL now that this feature can be enabled in a different way. [#34990](https://github.com/woocommerce/woocommerce/pull/34990)
|
||||||
|
* Dev - Update the list of tags for WC plugin on .org [#35573](https://github.com/woocommerce/woocommerce/pull/35573)
|
||||||
|
* Dev - Update unit test install script for db sockets. [#35152](https://github.com/woocommerce/woocommerce/pull/35152)
|
||||||
|
* Dev - Use plugins/woocommerce/tests/e2e-pw folder for saving test outputs [#35206](https://github.com/woocommerce/woocommerce/pull/35206)
|
||||||
|
* Dev - Uses the globa-setup.js to setup permalinks structure [#35282](https://github.com/woocommerce/woocommerce/pull/35282)
|
||||||
|
* Tweak - Move HPOS hook woocommerce_before_delete_order before deleting order. [#35517](https://github.com/woocommerce/woocommerce/pull/35517)
|
||||||
|
* Tweak - Adds new filter `woocommerce_get_customer_payment_tokens_limit` to set limit on number of payment methods fetched within the My Account page. [#29850](https://github.com/woocommerce/woocommerce/pull/29850)
|
||||||
|
* Tweak - Add source parameter for calls to the subscriptions endpoint on WooCommerce.com [#35051](https://github.com/woocommerce/woocommerce/pull/35051)
|
||||||
|
* Tweak - Fix @version header in form-login.php [#35479](https://github.com/woocommerce/woocommerce/pull/35479)
|
||||||
|
* Tweak - Move HPOS hook woocommerce_before_delete_order before deleting order. [#35517](https://github.com/woocommerce/woocommerce/pull/35517)
|
||||||
|
* Tweak - typo fix [#35111](https://github.com/woocommerce/woocommerce/pull/35111)
|
||||||
|
* Tweak - Unwrap product page input props and pass via getInputProps [#35034](https://github.com/woocommerce/woocommerce/pull/35034)
|
||||||
|
* Tweak - Updates the currency symbol used for the Azerbaijani manat. [#30605](https://github.com/woocommerce/woocommerce/pull/30605)
|
||||||
|
* Tweak - Use new Tooltip component instead of EnrichedLabel [#35024](https://github.com/woocommerce/woocommerce/pull/35024)
|
||||||
|
* Enhancement - Change the product info section title to Product Details [#35255](https://github.com/woocommerce/woocommerce/pull/35255)
|
||||||
|
* Enhancement - Fix the display of letter descenders in the shipping class dropdown menu [#35258](https://github.com/woocommerce/woocommerce/pull/35258)
|
||||||
|
* Enhancement - Improve the communication around required and optional [#35266](https://github.com/woocommerce/woocommerce/pull/35266)
|
||||||
|
* Enhancement - Increase the spacing between the shipping box illustration and the dimensions fields [#35259](https://github.com/woocommerce/woocommerce/pull/35259)
|
||||||
|
* Enhancement - Optimize query usage in the Onboarding tasks [#35065](https://github.com/woocommerce/woocommerce/pull/35065)
|
||||||
|
* Enhancement - Remove some placeholder values [#35267](https://github.com/woocommerce/woocommerce/pull/35267)
|
||||||
|
* Enhancement - Replace the trash can icon in the attribute list [#35133](https://github.com/woocommerce/woocommerce/pull/35133)
|
||||||
|
* Enhancement - Select the current new added shipping class [#35123](https://github.com/woocommerce/woocommerce/pull/35123)
|
||||||
|
* Enhancement - Tweaks the PR template for GitHub pull requests [#34597](https://github.com/woocommerce/woocommerce/pull/34597)
|
||||||
|
|
||||||
|
|
||||||
|
= 7.2.1 2022-12-16 =
|
||||||
|
|
||||||
|
**WooCommerce**
|
||||||
|
|
||||||
|
* Update - Include taxes migration in MigrationHelper::migrate_country_states [#35967](https://github.com/woocommerce/woocommerce/pull/35967)
|
||||||
|
|
||||||
|
= 7.2.0 2022-12-14 =
|
||||||
|
|
||||||
|
**WooCommerce**
|
||||||
|
|
||||||
|
* Fix - Drop usage of WP 5.9 function in the product quantity selector template. [#36054](https://github.com/woocommerce/woocommerce/pull/36054)
|
||||||
|
* Fix - Add a data migration for changed New Zealand and Ukraine state codes [#35669](https://github.com/woocommerce/woocommerce/pull/35669)
|
||||||
|
* Fix - Fix error in onboarding wizard when plugin is activated but includes unexpected output. [#35866](https://github.com/woocommerce/woocommerce/pull/35866)
|
||||||
|
* Fix - Increased margin so that overflow modal content doesn't clip header [#35780](https://github.com/woocommerce/woocommerce/pull/35780)
|
||||||
|
* Fix - Added default additional content to emails via filter woocommerce_email_additional_content_. [#35195](https://github.com/woocommerce/woocommerce/pull/35195)
|
||||||
|
* Fix - Corrects the currency symbol for Libyan Dinar (LYD). [#35395](https://github.com/woocommerce/woocommerce/pull/35395)
|
||||||
|
* Fix - Fix 'Invalid payment method' error upon double click on Delete button of Payment methods table [#30884](https://github.com/woocommerce/woocommerce/pull/30884)
|
||||||
|
* Fix - Fix bg color that was not covering the full page [#35476](https://github.com/woocommerce/woocommerce/pull/35476)
|
||||||
|
* Fix - Fix class name for class FirstDownlaodableProduct [#35383](https://github.com/woocommerce/woocommerce/pull/35383)
|
||||||
|
* Fix - Fixed "Unsupported operand types" error. [#34327](https://github.com/woocommerce/woocommerce/pull/34327)
|
||||||
|
* Fix - Fix inconsistent return type of class WC_Shipping_Rate->get_shipping_tax() [#35453](https://github.com/woocommerce/woocommerce/pull/35453)
|
||||||
|
* Fix - Fix invalid wcadmin_install_plugin_error event props [#35411](https://github.com/woocommerce/woocommerce/pull/35411)
|
||||||
|
* Fix - Fix JS error when the business step is accessed directly via URL without completing the previous steps [#35045](https://github.com/woocommerce/woocommerce/pull/35045)
|
||||||
|
* Fix - fix popper position for in-app marketplace tour [#35278](https://github.com/woocommerce/woocommerce/pull/35278)
|
||||||
|
* Fix - Fix WooCommerce icons not loading in the site editor. [#35532](https://github.com/woocommerce/woocommerce/pull/35532)
|
||||||
|
* Fix - FQCN for WP_Error in PHPDoc. [#35305](https://github.com/woocommerce/woocommerce/pull/35305)
|
||||||
|
* Fix - Make the user search metabox for orders show the same information for the loaded user and for search results [#35244](https://github.com/woocommerce/woocommerce/pull/35244)
|
||||||
|
* Fix - Override filter_meta_data method, since it should be a no-op anyway. [#35192](https://github.com/woocommerce/woocommerce/pull/35192)
|
||||||
|
* Fix - Remove the direct dependency on `$_POST` when validating checkout data. [#35329](https://github.com/woocommerce/woocommerce/pull/35329)
|
||||||
|
* Fix - Revert change that auto collapses the product short description field. [#35213](https://github.com/woocommerce/woocommerce/pull/35213)
|
||||||
|
* Fix - Skip flaky settings API test [#35338](https://github.com/woocommerce/woocommerce/pull/35338)
|
||||||
|
* Fix - Update Playwright from 1.26.1 to 1.27.1 [#35106](https://github.com/woocommerce/woocommerce/pull/35106)
|
||||||
|
* Fix - When the minimum and maximum quantity are identical, render the quantity input and set it to disabled. [#34282](https://github.com/woocommerce/woocommerce/pull/34282)
|
||||||
|
* Add - Add "Empty Trash" functionality to HPOS list table. [#35489](https://github.com/woocommerce/woocommerce/pull/35489)
|
||||||
|
* Add - Add add attribute modal to the attribute field in the new product management MVP [#34999](https://github.com/woocommerce/woocommerce/pull/34999)
|
||||||
|
* Add - Add add new option for the category dropdown within the product MVP [#35132](https://github.com/woocommerce/woocommerce/pull/35132)
|
||||||
|
* Add - Add contextual product more menu [#35447](https://github.com/woocommerce/woocommerce/pull/35447)
|
||||||
|
* Add - Added a guided tour for WooCommerce Extensions page [#35278](https://github.com/woocommerce/woocommerce/pull/35278)
|
||||||
|
* Add - Added npm script for Playwright API Core Tests [#35283](https://github.com/woocommerce/woocommerce/pull/35283)
|
||||||
|
* Add - Added states for Senegal. [#35199](https://github.com/woocommerce/woocommerce/pull/35199)
|
||||||
|
* Add - Added the "Tour the WooCommerce Marketplace" task to onboarding tasks list [#35278](https://github.com/woocommerce/woocommerce/pull/35278)
|
||||||
|
* Add - Added Ukrainian subdivisions. [#35493](https://github.com/woocommerce/woocommerce/pull/35493)
|
||||||
|
* Add - Adding attribute edit modal for new product screen. [#35269](https://github.com/woocommerce/woocommerce/pull/35269)
|
||||||
|
* Add - Add manual stock management section to product management experience [#35047](https://github.com/woocommerce/woocommerce/pull/35047)
|
||||||
|
* Add - Add new Category dropdown field to the new Product Management screen. [#34400](https://github.com/woocommerce/woocommerce/pull/34400)
|
||||||
|
* Add - add new track events for in-app marketplace tour [#35278](https://github.com/woocommerce/woocommerce/pull/35278)
|
||||||
|
* Add - Add option and modal to create new attribute terms within MVP attribute modal. [#35131](https://github.com/woocommerce/woocommerce/pull/35131)
|
||||||
|
* Add - Add placeholder to description field [#35286](https://github.com/woocommerce/woocommerce/pull/35286)
|
||||||
|
* Add - Add playwright api-core-tests for data crud operations [#35347](https://github.com/woocommerce/woocommerce/pull/35347)
|
||||||
|
* Add - Add playwright api-core-tests for payment gateways crud operations [#35279](https://github.com/woocommerce/woocommerce/pull/35279)
|
||||||
|
* Add - Add playwright api-core-tests for product reviews crud operations [#35163](https://github.com/woocommerce/woocommerce/pull/35163)
|
||||||
|
* Add - Add playwright api-core-tests for product variations crud operations [#35355](https://github.com/woocommerce/woocommerce/pull/35355)
|
||||||
|
* Add - Add playwright api-core-tests for reports crud operations [#35388](https://github.com/woocommerce/woocommerce/pull/35388)
|
||||||
|
* Add - Add playwright api-core-tests for settingss crud operations [#35253](https://github.com/woocommerce/woocommerce/pull/35253)
|
||||||
|
* Add - Add playwright api-core-tests for system status crud operations [#35254](https://github.com/woocommerce/woocommerce/pull/35254)
|
||||||
|
* Add - Add playwright api-core-tests for webhooks crud operations [#35292](https://github.com/woocommerce/woocommerce/pull/35292)
|
||||||
|
* Add - Add Product description title in old editor for clarification. [#35154](https://github.com/woocommerce/woocommerce/pull/35154)
|
||||||
|
* Add - Add product inventory advanced section [#35164](https://github.com/woocommerce/woocommerce/pull/35164)
|
||||||
|
* Add - Add product management description to new product management experience [#34961](https://github.com/woocommerce/woocommerce/pull/34961)
|
||||||
|
* Add - Add product state badge to product form header [#35460](https://github.com/woocommerce/woocommerce/pull/35460)
|
||||||
|
* Add - Add product title to header when available [#35431](https://github.com/woocommerce/woocommerce/pull/35431)
|
||||||
|
* Add - Add scheduled sale support to new product edit page. [#34538](https://github.com/woocommerce/woocommerce/pull/34538)
|
||||||
|
* Add - Adds new Inbox Note to provide more information about WooCommerce Payments to users who dismiss the WCPay promo but say that they want more information in the exit survey. [#35581](https://github.com/woocommerce/woocommerce/pull/35581)
|
||||||
|
* Add - Add summary to new product page experience [#35201](https://github.com/woocommerce/woocommerce/pull/35201)
|
||||||
|
* Add - Include order datastore information in status report. [#35487](https://github.com/woocommerce/woocommerce/pull/35487)
|
||||||
|
* Add - Make it possible to add custom bulk action handling to the admin order list screen (when HPOS is enabled). [#35442](https://github.com/woocommerce/woocommerce/pull/35442)
|
||||||
|
* Add - Set In-App Marketplace Tour as completed on tour close [#35278](https://github.com/woocommerce/woocommerce/pull/35278)
|
||||||
|
* Add - When custom order tables are not authoritative, admin UI requests will be redirected to the matching legacy order screen as appropriate. [#35463](https://github.com/woocommerce/woocommerce/pull/35463)
|
||||||
|
* Update - Woo Blocks 8.9.2 [#35805](https://github.com/woocommerce/woocommerce/pull/35805)
|
||||||
|
* Update - Comment: Update WooCommerce Blocks to 8.7.2 [#35101](https://github.com/woocommerce/woocommerce/pull/35101)
|
||||||
|
* Update - Comment: Update WooCommerce Blocks to 8.7.3 [#35219](https://github.com/woocommerce/woocommerce/pull/35219)
|
||||||
|
* Update - Comment: Update WooCommerce Blocks to 8.9.1 [#35564](https://github.com/woocommerce/woocommerce/pull/35564)
|
||||||
|
* Update - CustomOrdersTableController::custom_orders_table_usage_is_enabled returns now false if the HPOS feature is disabled [#35597](https://github.com/woocommerce/woocommerce/pull/35597)
|
||||||
|
* Update - Disable inventory stock toggle when product stock management is disabled [#35059](https://github.com/woocommerce/woocommerce/pull/35059)
|
||||||
|
* Update - Improve the loading time of WooCommerce setup widget for large databases [#35334](https://github.com/woocommerce/woocommerce/pull/35334)
|
||||||
|
* Update - Permit showing a guided tour for WooCommerce Extensions page on desktops only [#35278](https://github.com/woocommerce/woocommerce/pull/35278)
|
||||||
|
* Update - Remove adding and managing products note [#35319](https://github.com/woocommerce/woocommerce/pull/35319)
|
||||||
|
* Update - Remove first downloadable product note [#35318](https://github.com/woocommerce/woocommerce/pull/35318)
|
||||||
|
* Update - Remove InsightFirstProductAndPayment note [#35309](https://github.com/woocommerce/woocommerce/pull/35309)
|
||||||
|
* Update - Remove insight on first sale note [#35341](https://github.com/woocommerce/woocommerce/pull/35341)
|
||||||
|
* Update - Remove manage store activity note [#35320](https://github.com/woocommerce/woocommerce/pull/35320)
|
||||||
|
* Update - Remove Popover.Slot usage and make use of exported SelectControlMenuSlot. [#35353](https://github.com/woocommerce/woocommerce/pull/35353)
|
||||||
|
* Update - Remove update store details note [#35322](https://github.com/woocommerce/woocommerce/pull/35322)
|
||||||
|
* Update - Update Array checks in playwright api-core-tests as some of the existing tests would produce false positives [#35462](https://github.com/woocommerce/woocommerce/pull/35462)
|
||||||
|
* Update - Update playwright api-core-tests for shipping crud operations [#35332](https://github.com/woocommerce/woocommerce/pull/35332)
|
||||||
|
* Update - Update playwright api-core-tests to execute for both base test environment and base JN environment with WooCommerce [#35522](https://github.com/woocommerce/woocommerce/pull/35522)
|
||||||
|
* Update - Update products task list UI [#35611](https://github.com/woocommerce/woocommerce/pull/35611)
|
||||||
|
* Update - Update ShippingLabelBanner add_meta_box action to only trigger on shop_order pages and remove deprecated function call. [#35212](https://github.com/woocommerce/woocommerce/pull/35212)
|
||||||
|
* Update - Update WooCommerce Blocks to 8.9.0 [#35521](https://github.com/woocommerce/woocommerce/pull/35521)
|
||||||
|
* Dev - Add variation price shortcut [#34948](https://github.com/woocommerce/woocommerce/pull/34948)
|
||||||
|
* Dev - Cleanup and deprecate unused Task properties and methods [#35450](https://github.com/woocommerce/woocommerce/pull/35450)
|
||||||
|
* Dev - Enable Playwright tests on Daily Smoke Test workflow and upload its Allure reports to S3 bucket. [#35114](https://github.com/woocommerce/woocommerce/pull/35114)
|
||||||
|
* Dev - Move product action buttons to header menu [#35214](https://github.com/woocommerce/woocommerce/pull/35214)
|
||||||
|
* Dev - Revert the changes introduced in PR #35282 [#35337](https://github.com/woocommerce/woocommerce/pull/35337)
|
||||||
|
* Dev - Show a dismissible snackbar if the server responds with an error [#35160](https://github.com/woocommerce/woocommerce/pull/35160)
|
||||||
|
* Dev - Update api-core-tests readme for consistency with new command and updates to other commands too. [#35303](https://github.com/woocommerce/woocommerce/pull/35303)
|
||||||
|
* Dev - Updated the COT plugin URL now that this feature can be enabled in a different way. [#34990](https://github.com/woocommerce/woocommerce/pull/34990)
|
||||||
|
* Dev - Update the list of tags for WC plugin on .org [#35573](https://github.com/woocommerce/woocommerce/pull/35573)
|
||||||
|
* Dev - Update unit test install script for db sockets. [#35152](https://github.com/woocommerce/woocommerce/pull/35152)
|
||||||
|
* Dev - Use plugins/woocommerce/tests/e2e-pw folder for saving test outputs [#35206](https://github.com/woocommerce/woocommerce/pull/35206)
|
||||||
|
* Dev - Uses the globa-setup.js to setup permalinks structure [#35282](https://github.com/woocommerce/woocommerce/pull/35282)
|
||||||
|
* Tweak - Move HPOS hook woocommerce_before_delete_order before deleting order. [#35517](https://github.com/woocommerce/woocommerce/pull/35517)
|
||||||
|
* Tweak - Adds new filter `woocommerce_get_customer_payment_tokens_limit` to set limit on number of payment methods fetched within the My Account page. [#29850](https://github.com/woocommerce/woocommerce/pull/29850)
|
||||||
|
* Tweak - Add source parameter for calls to the subscriptions endpoint on WooCommerce.com [#35051](https://github.com/woocommerce/woocommerce/pull/35051)
|
||||||
|
* Tweak - Fix @version header in form-login.php [#35479](https://github.com/woocommerce/woocommerce/pull/35479)
|
||||||
|
* Tweak - Move HPOS hook woocommerce_before_delete_order before deleting order. [#35517](https://github.com/woocommerce/woocommerce/pull/35517)
|
||||||
|
* Tweak - typo fix [#35111](https://github.com/woocommerce/woocommerce/pull/35111)
|
||||||
|
* Tweak - Unwrap product page input props and pass via getInputProps [#35034](https://github.com/woocommerce/woocommerce/pull/35034)
|
||||||
|
* Tweak - Updates the currency symbol used for the Azerbaijani manat. [#30605](https://github.com/woocommerce/woocommerce/pull/30605)
|
||||||
|
* Tweak - Use new Tooltip component instead of EnrichedLabel [#35024](https://github.com/woocommerce/woocommerce/pull/35024)
|
||||||
|
* Enhancement - Change the product info section title to Product Details [#35255](https://github.com/woocommerce/woocommerce/pull/35255)
|
||||||
|
* Enhancement - Fix the display of letter descenders in the shipping class dropdown menu [#35258](https://github.com/woocommerce/woocommerce/pull/35258)
|
||||||
|
* Enhancement - Improve the communication around required and optional [#35266](https://github.com/woocommerce/woocommerce/pull/35266)
|
||||||
|
* Enhancement - Increase the spacing between the shipping box illustration and the dimensions fields [#35259](https://github.com/woocommerce/woocommerce/pull/35259)
|
||||||
|
* Enhancement - Optimize query usage in the Onboarding tasks [#35065](https://github.com/woocommerce/woocommerce/pull/35065)
|
||||||
|
* Enhancement - Remove some placeholder values [#35267](https://github.com/woocommerce/woocommerce/pull/35267)
|
||||||
|
* Enhancement - Replace the trash can icon in the attribute list [#35133](https://github.com/woocommerce/woocommerce/pull/35133)
|
||||||
|
* Enhancement - Select the current new added shipping class [#35123](https://github.com/woocommerce/woocommerce/pull/35123)
|
||||||
|
* Enhancement - Tweaks the PR template for GitHub pull requests [#34597](https://github.com/woocommerce/woocommerce/pull/34597)
|
||||||
|
|
||||||
|
|
||||||
= 7.1.1 2022-12-07 =
|
= 7.1.1 2022-12-07 =
|
||||||
|
|
||||||
**WooCommerce**
|
**WooCommerce**
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "pnpm exec turbo run turbo:build",
|
"build": "pnpm exec turbo run turbo:build",
|
||||||
"test": "pnpm exec turbo run turbo:test",
|
"test": "pnpm exec turbo run turbo:test",
|
||||||
|
"clean": "pnpm store prune && git clean -fx **/node_modules && pnpm i",
|
||||||
"preinstall": "npx only-allow pnpm",
|
"preinstall": "npx only-allow pnpm",
|
||||||
"postinstall": "pnpm git:update-hooks",
|
"postinstall": "pnpm git:update-hooks",
|
||||||
"git:update-hooks": "rm -r .git/hooks && mkdir -p .git/hooks && husky install",
|
"git:update-hooks": "rm -r .git/hooks && mkdir -p .git/hooks && husky install",
|
||||||
|
@ -50,7 +51,7 @@
|
||||||
"sass": "^1.49.9",
|
"sass": "^1.49.9",
|
||||||
"sass-loader": "^10.2.1",
|
"sass-loader": "^10.2.1",
|
||||||
"syncpack": "^8.3.9",
|
"syncpack": "^8.3.9",
|
||||||
"turbo": "^1.4.5",
|
"turbo": "^1.7.0",
|
||||||
"typescript": "^4.8.3",
|
"typescript": "^4.8.3",
|
||||||
"url-loader": "^1.1.2",
|
"url-loader": "^1.1.2",
|
||||||
"webpack": "^5.70.0"
|
"webpack": "^5.70.0"
|
||||||
|
|
|
@ -62,4 +62,12 @@ To create a new package, add a new folder to `/packages`, containing…
|
||||||
- Usage example
|
- Usage example
|
||||||
4. A `src` directory for the source of your module, which will be built by default using the `pnpm run turbo:build` command. Note that you'll want an `index.js` file that exports the package contents, see other packages for examples.
|
4. A `src` directory for the source of your module, which will be built by default using the `pnpm run turbo:build` command. Note that you'll want an `index.js` file that exports the package contents, see other packages for examples.
|
||||||
|
|
||||||
5. Add the new package name to `packages/js/dependency-extraction-webpack-plugin/assets/packages.js` so that users of that plugin will also be able to use the new package without enqueuing it.
|
5. A blank Changelog file, `changelog.md`.
|
||||||
|
|
||||||
|
```
|
||||||
|
# Changelog
|
||||||
|
|
||||||
|
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
```
|
||||||
|
|
||||||
|
6. Add the new package name to `packages/js/dependency-extraction-webpack-plugin/assets/packages.js` so that users of that plugin will also be able to use the new package without enqueuing it.
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Update eslint to 8.32.0 across the monorepo.
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: minor
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Lint fixes
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: fix
|
||||||
|
|
||||||
|
Unify semver range for `config@3.3.7` (from `^3.3.7`). Fix `node_env_var_name is not defined` error.
|
|
@ -0,0 +1,5 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: fix
|
||||||
|
Comment: Dev dependency update.
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"license": "GPL-3.0-or-later",
|
"license": "GPL-3.0-or-later",
|
||||||
"minimum-stability": "dev",
|
"minimum-stability": "dev",
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"automattic/jetpack-changelogger": "3.1.3"
|
"automattic/jetpack-changelogger": "3.3.0"
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"platform": {
|
"platform": {
|
||||||
|
|
|
@ -4,32 +4,32 @@
|
||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "cae17ca18e2a2a6cefe200df88081346",
|
"content-hash": "959b38edbc3ae0c3853c02e86852f583",
|
||||||
"packages": [],
|
"packages": [],
|
||||||
"packages-dev": [
|
"packages-dev": [
|
||||||
{
|
{
|
||||||
"name": "automattic/jetpack-changelogger",
|
"name": "automattic/jetpack-changelogger",
|
||||||
"version": "v3.1.3",
|
"version": "v3.3.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Automattic/jetpack-changelogger.git",
|
"url": "https://github.com/Automattic/jetpack-changelogger.git",
|
||||||
"reference": "cdd256d8ba6369f82d9377de7e9e2598e3e16ae0"
|
"reference": "8f63c829b8d1b0d7b1d5de93510d78523ed18959"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/Automattic/jetpack-changelogger/zipball/cdd256d8ba6369f82d9377de7e9e2598e3e16ae0",
|
"url": "https://api.github.com/repos/Automattic/jetpack-changelogger/zipball/8f63c829b8d1b0d7b1d5de93510d78523ed18959",
|
||||||
"reference": "cdd256d8ba6369f82d9377de7e9e2598e3e16ae0",
|
"reference": "8f63c829b8d1b0d7b1d5de93510d78523ed18959",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.6",
|
"php": ">=5.6",
|
||||||
"symfony/console": "^3.4 || ^5.2",
|
"symfony/console": "^3.4 || ^5.2 || ^6.0",
|
||||||
"symfony/process": "^3.4 || ^5.2",
|
"symfony/process": "^3.4 || ^5.2 || ^6.0",
|
||||||
"wikimedia/at-ease": "^1.2 || ^2.0"
|
"wikimedia/at-ease": "^1.2 || ^2.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"wikimedia/testing-access-wrapper": "^1.0 || ^2.0",
|
"wikimedia/testing-access-wrapper": "^1.0 || ^2.0",
|
||||||
"yoast/phpunit-polyfills": "1.0.3"
|
"yoast/phpunit-polyfills": "1.0.4"
|
||||||
},
|
},
|
||||||
"bin": [
|
"bin": [
|
||||||
"bin/changelogger"
|
"bin/changelogger"
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
"extra": {
|
"extra": {
|
||||||
"autotagger": true,
|
"autotagger": true,
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-trunk": "3.1.x-dev"
|
"dev-trunk": "3.3.x-dev"
|
||||||
},
|
},
|
||||||
"mirror-repo": "Automattic/jetpack-changelogger",
|
"mirror-repo": "Automattic/jetpack-changelogger",
|
||||||
"version-constants": {
|
"version-constants": {
|
||||||
|
@ -60,9 +60,9 @@
|
||||||
],
|
],
|
||||||
"description": "Jetpack Changelogger tool. Allows for managing changelogs by dropping change files into a changelog directory with each PR.",
|
"description": "Jetpack Changelogger tool. Allows for managing changelogs by dropping change files into a changelog directory with each PR.",
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/Automattic/jetpack-changelogger/tree/v3.1.3"
|
"source": "https://github.com/Automattic/jetpack-changelogger/tree/v3.3.0"
|
||||||
},
|
},
|
||||||
"time": "2022-06-21T07:31:56+00:00"
|
"time": "2022-12-26T13:49:01+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "psr/log",
|
"name": "psr/log",
|
||||||
|
@ -204,12 +204,12 @@
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/debug.git",
|
"url": "https://github.com/symfony/debug.git",
|
||||||
"reference": "6637e62480b60817b9a6984154a533e8e64c6bd5"
|
"reference": "1a692492190773c5310bc7877cb590c04c2f05be"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/debug/zipball/6637e62480b60817b9a6984154a533e8e64c6bd5",
|
"url": "https://api.github.com/repos/symfony/debug/zipball/1a692492190773c5310bc7877cb590c04c2f05be",
|
||||||
"reference": "6637e62480b60817b9a6984154a533e8e64c6bd5",
|
"reference": "1a692492190773c5310bc7877cb590c04c2f05be",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -249,7 +249,7 @@
|
||||||
"description": "Provides tools to ease debugging PHP code",
|
"description": "Provides tools to ease debugging PHP code",
|
||||||
"homepage": "https://symfony.com",
|
"homepage": "https://symfony.com",
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/debug/tree/v4.4.41"
|
"source": "https://github.com/symfony/debug/tree/v4.4.44"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
@ -266,7 +266,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"abandoned": "symfony/error-handler",
|
"abandoned": "symfony/error-handler",
|
||||||
"time": "2022-04-12T15:19:55+00:00"
|
"time": "2022-07-28T16:29:46+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/polyfill-mbstring",
|
"name": "symfony/polyfill-mbstring",
|
||||||
|
@ -274,12 +274,12 @@
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
||||||
"reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e"
|
"reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e",
|
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/8ad114f6b39e2c98a8b0e3bd907732c207c2b534",
|
||||||
"reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e",
|
"reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -295,7 +295,7 @@
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-main": "1.26-dev"
|
"dev-main": "1.27-dev"
|
||||||
},
|
},
|
||||||
"thanks": {
|
"thanks": {
|
||||||
"name": "symfony/polyfill",
|
"name": "symfony/polyfill",
|
||||||
|
@ -334,7 +334,7 @@
|
||||||
"shim"
|
"shim"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.26.0"
|
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.27.0"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
@ -350,7 +350,7 @@
|
||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2022-05-24T11:49:31+00:00"
|
"time": "2022-11-03T14:55:06+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/process",
|
"name": "symfony/process",
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
"@jest/globals": "^27.5.1",
|
"@jest/globals": "^27.5.1",
|
||||||
"@types/jest": "^27.4.1",
|
"@types/jest": "^27.4.1",
|
||||||
"@woocommerce/e2e-utils": "workspace:*",
|
"@woocommerce/e2e-utils": "workspace:*",
|
||||||
"config": "^3.3.7"
|
"config": "3.3.7"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@woocommerce/e2e-environment": "^0.2.3 || ^0.3.0",
|
"@woocommerce/e2e-environment": "^0.2.3 || ^0.3.0",
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
"@typescript-eslint/eslint-plugin": "^5.43.0",
|
"@typescript-eslint/eslint-plugin": "^5.43.0",
|
||||||
"@woocommerce/api": "^0.2.0",
|
"@woocommerce/api": "^0.2.0",
|
||||||
"@woocommerce/eslint-plugin": "workspace:*",
|
"@woocommerce/eslint-plugin": "workspace:*",
|
||||||
"eslint": "^8.12.0",
|
"eslint": "^8.32.0",
|
||||||
"jest": "^27.5.1",
|
"jest": "^27.5.1",
|
||||||
"jest-cli": "^27.5.1",
|
"jest-cli": "^27.5.1",
|
||||||
"jest-mock-extended": "^1.0.18",
|
"jest-mock-extended": "^1.0.18",
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* Internal dependencies
|
* Internal dependencies
|
||||||
*/
|
*/
|
||||||
import { waitForElementByText, getElementByText } from '../utils/actions';
|
import { waitForElementByText } from '../utils/actions';
|
||||||
import { BasePage } from './BasePage';
|
import { BasePage } from './BasePage';
|
||||||
|
|
||||||
type PaymentMethodWithSetupButton =
|
type PaymentMethodWithSetupButton =
|
||||||
|
@ -12,7 +12,7 @@ type PaymentMethodWithSetupButton =
|
||||||
| 'mollie'
|
| 'mollie'
|
||||||
| 'bacs';
|
| 'bacs';
|
||||||
|
|
||||||
type PaymentMethod = PaymentMethodWithSetupButton | 'cod';
|
// type PaymentMethod = PaymentMethodWithSetupButton | 'cod';
|
||||||
|
|
||||||
export class PaymentsSetup extends BasePage {
|
export class PaymentsSetup extends BasePage {
|
||||||
url = 'wp-admin/admin.php?page=wc-admin&task=payments';
|
url = 'wp-admin/admin.php?page=wc-admin&task=payments';
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@woocommerce/eslint-plugin": "workspace:*",
|
"@woocommerce/eslint-plugin": "workspace:*",
|
||||||
"eslint": "^8.12.0"
|
"eslint": "^8.32.0"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Update eslint to 8.32.0 across the monorepo.
|
|
@ -0,0 +1,5 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: fix
|
||||||
|
Comment: Dev dependency update.
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"license": "GPL-3.0-or-later",
|
"license": "GPL-3.0-or-later",
|
||||||
"minimum-stability": "dev",
|
"minimum-stability": "dev",
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"automattic/jetpack-changelogger": "3.1.3"
|
"automattic/jetpack-changelogger": "3.3.0"
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"platform": {
|
"platform": {
|
||||||
|
|
|
@ -4,32 +4,32 @@
|
||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "2ac4a9ea3ab4687cb26b0075128628de",
|
"content-hash": "8cdc2ba8c2e8669b3d48cf7e4cb3c379",
|
||||||
"packages": [],
|
"packages": [],
|
||||||
"packages-dev": [
|
"packages-dev": [
|
||||||
{
|
{
|
||||||
"name": "automattic/jetpack-changelogger",
|
"name": "automattic/jetpack-changelogger",
|
||||||
"version": "v3.1.3",
|
"version": "v3.3.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Automattic/jetpack-changelogger.git",
|
"url": "https://github.com/Automattic/jetpack-changelogger.git",
|
||||||
"reference": "cdd256d8ba6369f82d9377de7e9e2598e3e16ae0"
|
"reference": "8f63c829b8d1b0d7b1d5de93510d78523ed18959"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/Automattic/jetpack-changelogger/zipball/cdd256d8ba6369f82d9377de7e9e2598e3e16ae0",
|
"url": "https://api.github.com/repos/Automattic/jetpack-changelogger/zipball/8f63c829b8d1b0d7b1d5de93510d78523ed18959",
|
||||||
"reference": "cdd256d8ba6369f82d9377de7e9e2598e3e16ae0",
|
"reference": "8f63c829b8d1b0d7b1d5de93510d78523ed18959",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.6",
|
"php": ">=5.6",
|
||||||
"symfony/console": "^3.4 || ^5.2",
|
"symfony/console": "^3.4 || ^5.2 || ^6.0",
|
||||||
"symfony/process": "^3.4 || ^5.2",
|
"symfony/process": "^3.4 || ^5.2 || ^6.0",
|
||||||
"wikimedia/at-ease": "^1.2 || ^2.0"
|
"wikimedia/at-ease": "^1.2 || ^2.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"wikimedia/testing-access-wrapper": "^1.0 || ^2.0",
|
"wikimedia/testing-access-wrapper": "^1.0 || ^2.0",
|
||||||
"yoast/phpunit-polyfills": "1.0.3"
|
"yoast/phpunit-polyfills": "1.0.4"
|
||||||
},
|
},
|
||||||
"bin": [
|
"bin": [
|
||||||
"bin/changelogger"
|
"bin/changelogger"
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
"extra": {
|
"extra": {
|
||||||
"autotagger": true,
|
"autotagger": true,
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-trunk": "3.1.x-dev"
|
"dev-trunk": "3.3.x-dev"
|
||||||
},
|
},
|
||||||
"mirror-repo": "Automattic/jetpack-changelogger",
|
"mirror-repo": "Automattic/jetpack-changelogger",
|
||||||
"version-constants": {
|
"version-constants": {
|
||||||
|
@ -60,9 +60,9 @@
|
||||||
],
|
],
|
||||||
"description": "Jetpack Changelogger tool. Allows for managing changelogs by dropping change files into a changelog directory with each PR.",
|
"description": "Jetpack Changelogger tool. Allows for managing changelogs by dropping change files into a changelog directory with each PR.",
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/Automattic/jetpack-changelogger/tree/v3.1.3"
|
"source": "https://github.com/Automattic/jetpack-changelogger/tree/v3.3.0"
|
||||||
},
|
},
|
||||||
"time": "2022-06-21T07:31:56+00:00"
|
"time": "2022-12-26T13:49:01+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "psr/log",
|
"name": "psr/log",
|
||||||
|
@ -204,12 +204,12 @@
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/debug.git",
|
"url": "https://github.com/symfony/debug.git",
|
||||||
"reference": "6637e62480b60817b9a6984154a533e8e64c6bd5"
|
"reference": "1a692492190773c5310bc7877cb590c04c2f05be"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/debug/zipball/6637e62480b60817b9a6984154a533e8e64c6bd5",
|
"url": "https://api.github.com/repos/symfony/debug/zipball/1a692492190773c5310bc7877cb590c04c2f05be",
|
||||||
"reference": "6637e62480b60817b9a6984154a533e8e64c6bd5",
|
"reference": "1a692492190773c5310bc7877cb590c04c2f05be",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -249,7 +249,7 @@
|
||||||
"description": "Provides tools to ease debugging PHP code",
|
"description": "Provides tools to ease debugging PHP code",
|
||||||
"homepage": "https://symfony.com",
|
"homepage": "https://symfony.com",
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/debug/tree/v4.4.41"
|
"source": "https://github.com/symfony/debug/tree/v4.4.44"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
@ -266,7 +266,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"abandoned": "symfony/error-handler",
|
"abandoned": "symfony/error-handler",
|
||||||
"time": "2022-04-12T15:19:55+00:00"
|
"time": "2022-07-28T16:29:46+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/polyfill-mbstring",
|
"name": "symfony/polyfill-mbstring",
|
||||||
|
@ -274,12 +274,12 @@
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
||||||
"reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e"
|
"reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e",
|
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/8ad114f6b39e2c98a8b0e3bd907732c207c2b534",
|
||||||
"reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e",
|
"reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -295,7 +295,7 @@
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-main": "1.26-dev"
|
"dev-main": "1.27-dev"
|
||||||
},
|
},
|
||||||
"thanks": {
|
"thanks": {
|
||||||
"name": "symfony/polyfill",
|
"name": "symfony/polyfill",
|
||||||
|
@ -334,7 +334,7 @@
|
||||||
"shim"
|
"shim"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.26.0"
|
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.27.0"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
@ -350,7 +350,7 @@
|
||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2022-05-24T11:49:31+00:00"
|
"time": "2022-11-03T14:55:06+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/process",
|
"name": "symfony/process",
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
"@typescript-eslint/parser": "^5.43.0",
|
"@typescript-eslint/parser": "^5.43.0",
|
||||||
"@woocommerce/eslint-plugin": "workspace:*",
|
"@woocommerce/eslint-plugin": "workspace:*",
|
||||||
"axios-mock-adapter": "^1.20.0",
|
"axios-mock-adapter": "^1.20.0",
|
||||||
"eslint": "^8.2.0",
|
"eslint": "^8.32.0",
|
||||||
"jest": "^27",
|
"jest": "^27",
|
||||||
"ts-jest": "^27",
|
"ts-jest": "^27",
|
||||||
"typescript": "^4.8.3"
|
"typescript": "^4.8.3"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: [ 'plugin:@woocommerce/eslint-plugin/recommended' ],
|
extends: [ 'plugin:@woocommerce/eslint-plugin/recommended' ],
|
||||||
root: true,
|
root: true,
|
||||||
|
ignorePatterns: [ '**/test/*.ts', '**/test/*.tsx' ],
|
||||||
overrides: [
|
overrides: [
|
||||||
{
|
{
|
||||||
files: [
|
files: [
|
||||||
|
|
|
@ -2,6 +2,41 @@
|
||||||
|
|
||||||
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [12.0.0](https://www.npmjs.com/package/@woocommerce/components/v/12.0.0) - 2022-12-28
|
||||||
|
|
||||||
|
- Patch - Add name to exported popover slot used to display SelectControl Menu, so it is only used for SelectControl menus. [#36124]
|
||||||
|
- Patch - Close DateTimePickerControl's dropdown when blurring from input. [#36124]
|
||||||
|
- Patch - DateTimePickerControl's onChange now only fires when there is an actual change to the datetime. [#36124]
|
||||||
|
- Patch - Fix DateTimePickerControl's popover styling when slot-fill is used. [#36124]
|
||||||
|
- Patch - Fixed DatePicker to work in WordPress 6.1 when currentDate is set to a moment instance. [#36124]
|
||||||
|
- Patch - Fix pagination label text from uppercase to normal and font styles [#36124]
|
||||||
|
- Patch - Include react-dates styles (no longer in WP 6.1+). [#36124]
|
||||||
|
- Minor - Set editor mode on initialization to prevent initial text editor focus [#36124]
|
||||||
|
- Patch - Set initial values prop from reset form function as optional [#36124]
|
||||||
|
- Patch - Add aria-label for simple select dropdown [#36124]
|
||||||
|
- Patch - Add async filtering support to the `__experimentalSelectControl` component [#36124]
|
||||||
|
- Minor - Add className prop to ListItem. [#36124]
|
||||||
|
- Minor - Add className prop to Sortable [#36124]
|
||||||
|
- Minor - Added ability to force time when DateTimePickerControl is date-only (timeForDateOnly prop). [#36124]
|
||||||
|
- Minor - Add experimental ConditionalWrapper component [#36124]
|
||||||
|
- Patch - Add experimental open menu when user focus the select control input element [#36124]
|
||||||
|
- Minor - Adding isHidden option for primary button in TourKit component. [#36124]
|
||||||
|
- Minor - Add support for custom suffix prop on SelectControl. [#36124]
|
||||||
|
- Minor - Make Table component accept className prop. [#36124]
|
||||||
|
- Minor - Move classname down in SelectControl Menu so it is on the actual Menu element. [#36124]
|
||||||
|
- Major [ **BREAKING CHANGE** ] - Switch DateTimePickerControl formatting to PHP style, for WP compatibility. [#36124]
|
||||||
|
- Patch - Updating downshift to 6.1.12. [#36124]
|
||||||
|
- Minor - Allow the user to select multiple images in the Media Library [#36124]
|
||||||
|
- Patch - Migrate search component to TS [#36124]
|
||||||
|
- Minor - Move file picker by clicking card into the MediaUploader component [#36124]
|
||||||
|
- Minor - Fix up initial block selection in RichTextEditor and add media blocks [#36124]
|
||||||
|
- Patch - Updated image gallery toolbar position and tooltips. [#36124]
|
||||||
|
- Patch - Update variable name within useFormContext. [#36124]
|
||||||
|
- Minor - Add noDataLabel property into table.js component to allow No Data label customization. [#36124]
|
||||||
|
- Patch - Align the field height across the whole form [#36124]
|
||||||
|
- Patch - Fade the value selection field in the Attributes modal when no attribute is added [#36124]
|
||||||
|
- Patch - Update font size and spacing in the tooltip component [#36124]
|
||||||
|
|
||||||
## [11.1.0](https://www.npmjs.com/package/@woocommerce/components/v/11.1.0) - 2022-10-24
|
## [11.1.0](https://www.npmjs.com/package/@woocommerce/components/v/11.1.0) - 2022-10-24
|
||||||
|
|
||||||
- Minor - Allow passing of additional props to form inputs [#35160]
|
- Minor - Allow passing of additional props to form inputs [#35160]
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
Significance: patch
|
|
||||||
Type: update
|
|
||||||
|
|
||||||
Updating downshift to 6.1.12.
|
|
|
@ -1,4 +0,0 @@
|
||||||
Significance: minor
|
|
||||||
Type: update
|
|
||||||
|
|
||||||
Move classname down in SelectControl Menu so it is on the actual Menu element.
|
|
|
@ -1,4 +0,0 @@
|
||||||
Significance: minor
|
|
||||||
Type: add
|
|
||||||
|
|
||||||
Add experimental ConditionalWrapper component
|
|
|
@ -1,4 +0,0 @@
|
||||||
Significance: patch
|
|
||||||
Type: add
|
|
||||||
|
|
||||||
Add async filtering support to the `__experimentalSelectControl` component
|
|
|
@ -1,4 +0,0 @@
|
||||||
Significance: patch
|
|
||||||
Type: add
|
|
||||||
|
|
||||||
Add experimental open menu when user focus the select control input element
|
|
|
@ -1,4 +0,0 @@
|
||||||
Significance: minor
|
|
||||||
Type: dev
|
|
||||||
|
|
||||||
Allow the user to select multiple images in the Media Library
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: minor
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Create tree-control component
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: minor
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Add a11y support for the Tree component
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: minor
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Add custom rendering logic to the item label
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: minor
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Add TreeControl expand/collapse functionality.
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: minor
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Add highlighter to the tree control
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: minor
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Add selection logic to tree control component
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: minor
|
||||||
|
Type: add
|
||||||
|
|
||||||
|
Adding WooProductFieldItem slotfill.
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: minor
|
||||||
|
Type: add
|
||||||
|
|
||||||
|
Adding the WooProductSectionItem slotfill component.
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: minor
|
||||||
|
Type: add
|
||||||
|
|
||||||
|
Add 6 basic fields to the product fields registry for use in extensibility within the new Product MVP.
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: minor
|
||||||
|
Type: add
|
||||||
|
|
||||||
|
Add product field store and helper functions for rendering fields from config.
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: minor
|
||||||
|
Type: add
|
||||||
|
|
||||||
|
Added LearnMore option as well as made it possible to use this button multiple instances on the page
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: minor
|
||||||
|
Type: update
|
||||||
|
|
||||||
|
Move experimental product section components to @woocommerce/product-editor package.
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: fix
|
||||||
|
|
||||||
|
Altering styles to correctly target fields within slot fills on product editor.
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: add
|
||||||
|
|
||||||
|
Add an optional "InputProps" to experimental SelectControl component
|
|
@ -1,4 +0,0 @@
|
||||||
Significance: minor
|
|
||||||
Type: add
|
|
||||||
|
|
||||||
Add support for custom suffix prop on SelectControl.
|
|
|
@ -1,4 +0,0 @@
|
||||||
Significance: minor
|
|
||||||
Type: dev
|
|
||||||
|
|
||||||
Move file picker by clicking card into the MediaUploader component
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Update eslint to 8.32.0 across the monorepo.
|
|
@ -1,5 +1,4 @@
|
||||||
Significance: patch
|
Significance: patch
|
||||||
Type: dev
|
Type: dev
|
||||||
Comment: Initial PR
|
|
||||||
|
|
||||||
|
|
||||||
|
Migrate Link component to TS
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Migrate ProductImage component to TS
|
|
@ -1,4 +1,4 @@
|
||||||
Significance: patch
|
Significance: patch
|
||||||
Type: dev
|
Type: dev
|
||||||
|
|
||||||
Migrate search component to TS
|
Migrate Section component to TS
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue