[testing workflows] Add workflow_call trigger in CI workflow - support daily and other types of runs (#47612)
* Add workflow_call event * Add tests-daily-run.yml * Remove workflow version * Update input value * Remove secrets from caller workflow * Rename job * Check context * Check context * Check workflow_call inputs * Override github.event_name with inputs.trigger * Fix input name * Add config for daily e2e tests with Gutenberg * Update env commands for Gutenberg run * Add disableHpos env variable in ci-utils * Revert the trigger to push * Revert the env variable setting in ci-jobs * Revert the env variable setting in ci-jobs * Rebuild utils * Update test env start command * Define the Gutenberg Playwright project * Use path relative to workspace root * Update events for test projects * Update events for test projects * Add changelogs * Remove the e2e tests with Gutenberg tests from daily runs * Set the schedule and workflow_dispatch triggers * Add --project default flag to only run the default tests in CI * Renamed snapshots to match the new Playwright project name
This commit is contained in:
parent
d2ac6ff953
commit
13ab9007f6
|
@ -5,6 +5,14 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- 'trunk'
|
- 'trunk'
|
||||||
- 'release/*'
|
- 'release/*'
|
||||||
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
trigger:
|
||||||
|
description: 'Type of run to trigger. E.g. daily-e2e, release-checks, etc.'
|
||||||
|
required: true
|
||||||
|
default: 'default'
|
||||||
|
type: string
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: '${{ github.workflow }}-${{ github.ref }}'
|
group: '${{ github.workflow }}-${{ github.ref }}'
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
@ -43,6 +51,11 @@ jobs:
|
||||||
}
|
}
|
||||||
|
|
||||||
let githubEvent = ${{ toJson( github.event_name ) }};
|
let githubEvent = ${{ toJson( github.event_name ) }};
|
||||||
|
let trigger = ${{ toJson( inputs.trigger ) }};
|
||||||
|
|
||||||
|
if ( trigger ) {
|
||||||
|
githubEvent = trigger;
|
||||||
|
}
|
||||||
|
|
||||||
const child_process = require( 'node:child_process' );
|
const child_process = require( 'node:child_process' );
|
||||||
child_process.execSync( `pnpm utils ci-jobs ${ baseRef } --event ${ githubEvent }` );
|
child_process.execSync( `pnpm utils ci-jobs ${ baseRef } --event ${ githubEvent }` );
|
||||||
|
|
|
@ -268,12 +268,6 @@ jobs:
|
||||||
- plugin: 'WooCommerce Shipping & Tax'
|
- plugin: 'WooCommerce Shipping & Tax'
|
||||||
repo: 'automattic/woocommerce-services'
|
repo: 'automattic/woocommerce-services'
|
||||||
slug: woocommerce-services
|
slug: woocommerce-services
|
||||||
- plugin: 'Gutenberg'
|
|
||||||
repo: 'WordPress/gutenberg'
|
|
||||||
slug: gutenberg
|
|
||||||
- plugin: 'Gutenberg - Nightly'
|
|
||||||
repo: 'bph/gutenberg'
|
|
||||||
slug: gutenberg
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
@ -410,10 +404,6 @@ jobs:
|
||||||
slug: woocommerce-paypal-payments
|
slug: woocommerce-paypal-payments
|
||||||
- plugin: 'WooCommerce Shipping & Tax'
|
- plugin: 'WooCommerce Shipping & Tax'
|
||||||
slug: woocommerce-services
|
slug: woocommerce-services
|
||||||
- plugin: 'Gutenberg'
|
|
||||||
slug: gutenberg
|
|
||||||
- plugin: 'Gutenberg - Nightly'
|
|
||||||
slug: gutenberg-nightly
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download test report artifact
|
- name: Download test report artifact
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
name: 'Daily tests run'
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '25 3 * * *'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
run-tests:
|
||||||
|
name: 'Run tests'
|
||||||
|
uses: ./.github/workflows/ci.yml
|
||||||
|
with:
|
||||||
|
trigger: 'daily-e2e'
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Update events that should trigger the test job(s)
|
|
@ -116,7 +116,11 @@
|
||||||
"name": "JavaScript",
|
"name": "JavaScript",
|
||||||
"command": "test:js",
|
"command": "test:js",
|
||||||
"changes": "src/**/*.{js,jsx,ts,tsx}",
|
"changes": "src/**/*.{js,jsx,ts,tsx}",
|
||||||
"cascade": "test:js"
|
"cascade": "test:js",
|
||||||
|
"events": [
|
||||||
|
"pull_request",
|
||||||
|
"push"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Update events that should trigger the test job(s)
|
|
@ -86,7 +86,11 @@
|
||||||
"src/**/*.{js,jsx,ts,tsx}",
|
"src/**/*.{js,jsx,ts,tsx}",
|
||||||
"typings/**/*.ts"
|
"typings/**/*.ts"
|
||||||
],
|
],
|
||||||
"cascade": "test:js"
|
"cascade": "test:js",
|
||||||
|
"events": [
|
||||||
|
"pull_request",
|
||||||
|
"push"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Update events that should trigger the test job(s)
|
|
@ -112,7 +112,11 @@
|
||||||
"src/**/*.{js,jsx,ts,tsx}",
|
"src/**/*.{js,jsx,ts,tsx}",
|
||||||
"typings/**/*.ts"
|
"typings/**/*.ts"
|
||||||
],
|
],
|
||||||
"cascade": "test:js"
|
"cascade": "test:js",
|
||||||
|
"events": [
|
||||||
|
"pull_request",
|
||||||
|
"push"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Update events that should trigger the test job(s)
|
|
@ -199,7 +199,11 @@
|
||||||
"src/**/*.{js,jsx,ts,tsx}",
|
"src/**/*.{js,jsx,ts,tsx}",
|
||||||
"typings/**/*.ts"
|
"typings/**/*.ts"
|
||||||
],
|
],
|
||||||
"cascade": "test:js"
|
"cascade": "test:js",
|
||||||
|
"events": [
|
||||||
|
"pull_request",
|
||||||
|
"push"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Update events that should trigger the test job(s)
|
|
@ -91,7 +91,11 @@
|
||||||
"src/**/*.{js,jsx,ts,tsx}",
|
"src/**/*.{js,jsx,ts,tsx}",
|
||||||
"typings/**/*.ts"
|
"typings/**/*.ts"
|
||||||
],
|
],
|
||||||
"cascade": "test:js"
|
"cascade": "test:js",
|
||||||
|
"events": [
|
||||||
|
"pull_request",
|
||||||
|
"push"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Update events that should trigger the test job(s)
|
|
@ -95,7 +95,11 @@
|
||||||
"src/**/*.{js,jsx,ts,tsx}",
|
"src/**/*.{js,jsx,ts,tsx}",
|
||||||
"typings/**/*.ts"
|
"typings/**/*.ts"
|
||||||
],
|
],
|
||||||
"cascade": "test:js"
|
"cascade": "test:js",
|
||||||
|
"events": [
|
||||||
|
"pull_request",
|
||||||
|
"push"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Update events that should trigger the test job(s)
|
|
@ -121,7 +121,11 @@
|
||||||
"src/**/*.{js,jsx,ts,tsx}",
|
"src/**/*.{js,jsx,ts,tsx}",
|
||||||
"typings/**/*.ts"
|
"typings/**/*.ts"
|
||||||
],
|
],
|
||||||
"cascade": "test:js"
|
"cascade": "test:js",
|
||||||
|
"events": [
|
||||||
|
"pull_request",
|
||||||
|
"push"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Update events that should trigger the test job(s)
|
|
@ -125,7 +125,11 @@
|
||||||
"src/**/*.{js,jsx,ts,tsx}",
|
"src/**/*.{js,jsx,ts,tsx}",
|
||||||
"typings/**/*.ts"
|
"typings/**/*.ts"
|
||||||
],
|
],
|
||||||
"cascade": "test:js"
|
"cascade": "test:js",
|
||||||
|
"events": [
|
||||||
|
"pull_request",
|
||||||
|
"push"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Update events that should trigger the test job(s)
|
|
@ -102,7 +102,11 @@
|
||||||
"src/**/*.{js,jsx,ts,tsx}",
|
"src/**/*.{js,jsx,ts,tsx}",
|
||||||
"typings/**/*.ts"
|
"typings/**/*.ts"
|
||||||
],
|
],
|
||||||
"cascade": "test:js"
|
"cascade": "test:js",
|
||||||
|
"events": [
|
||||||
|
"pull_request",
|
||||||
|
"push"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Update events that should trigger the test job(s)
|
|
@ -131,7 +131,11 @@
|
||||||
"src/**/*.{js,jsx,ts,tsx}",
|
"src/**/*.{js,jsx,ts,tsx}",
|
||||||
"typings/**/*.ts"
|
"typings/**/*.ts"
|
||||||
],
|
],
|
||||||
"cascade": "test:js"
|
"cascade": "test:js",
|
||||||
|
"events": [
|
||||||
|
"pull_request",
|
||||||
|
"push"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Update events that should trigger the test job(s)
|
|
@ -99,7 +99,11 @@
|
||||||
"src/**/*.{js,jsx,ts,tsx}",
|
"src/**/*.{js,jsx,ts,tsx}",
|
||||||
"typings/**/*.ts"
|
"typings/**/*.ts"
|
||||||
],
|
],
|
||||||
"cascade": "test:js"
|
"cascade": "test:js",
|
||||||
|
"events": [
|
||||||
|
"pull_request",
|
||||||
|
"push"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Update events that should trigger the test job(s)
|
|
@ -96,7 +96,11 @@
|
||||||
"src/**/*.{js,jsx,ts,tsx}",
|
"src/**/*.{js,jsx,ts,tsx}",
|
||||||
"typings/**/*.ts"
|
"typings/**/*.ts"
|
||||||
],
|
],
|
||||||
"cascade": "test:js"
|
"cascade": "test:js",
|
||||||
|
"events": [
|
||||||
|
"pull_request",
|
||||||
|
"push"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Update events that should trigger the test job(s)
|
|
@ -105,7 +105,11 @@
|
||||||
"src/**/*.{js,jsx,ts,tsx}",
|
"src/**/*.{js,jsx,ts,tsx}",
|
||||||
"typings/**/*.ts"
|
"typings/**/*.ts"
|
||||||
],
|
],
|
||||||
"cascade": "test:js"
|
"cascade": "test:js",
|
||||||
|
"events": [
|
||||||
|
"pull_request",
|
||||||
|
"push"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Update events that should trigger the test job(s)
|
|
@ -91,7 +91,11 @@
|
||||||
"src/**/*.{js,jsx,ts,tsx}",
|
"src/**/*.{js,jsx,ts,tsx}",
|
||||||
"typings/**/*.ts"
|
"typings/**/*.ts"
|
||||||
],
|
],
|
||||||
"cascade": "test:js"
|
"cascade": "test:js",
|
||||||
|
"events": [
|
||||||
|
"pull_request",
|
||||||
|
"push"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Update events that should trigger the test job(s)
|
|
@ -117,7 +117,11 @@
|
||||||
"src/**/*.{js,jsx,ts,tsx}",
|
"src/**/*.{js,jsx,ts,tsx}",
|
||||||
"typings/**/*.ts"
|
"typings/**/*.ts"
|
||||||
],
|
],
|
||||||
"cascade": "test:js"
|
"cascade": "test:js",
|
||||||
|
"events": [
|
||||||
|
"pull_request",
|
||||||
|
"push"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Update events that should trigger the test job(s)
|
|
@ -172,7 +172,11 @@
|
||||||
"src/**/*.{js,jsx,ts,tsx}",
|
"src/**/*.{js,jsx,ts,tsx}",
|
||||||
"typings/**/*.ts"
|
"typings/**/*.ts"
|
||||||
],
|
],
|
||||||
"cascade": "test:js"
|
"cascade": "test:js",
|
||||||
|
"events": [
|
||||||
|
"pull_request",
|
||||||
|
"push"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -262,7 +262,11 @@
|
||||||
"tsconfig.json",
|
"tsconfig.json",
|
||||||
"client/**/*.{js,jsx,ts,tsx,scss,json}"
|
"client/**/*.{js,jsx,ts,tsx,scss,json}"
|
||||||
],
|
],
|
||||||
"cascade": "test:js"
|
"cascade": "test:js",
|
||||||
|
"events": [
|
||||||
|
"pull_request",
|
||||||
|
"push"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -368,7 +368,11 @@
|
||||||
"tests/js/**/*.{js,ts,tsx,scss,json}",
|
"tests/js/**/*.{js,ts,tsx,scss,json}",
|
||||||
"tests/utils/**/.{js,ts,tsx,scss,json}"
|
"tests/utils/**/.{js,ts,tsx,scss,json}"
|
||||||
],
|
],
|
||||||
"cascade": "test:js"
|
"cascade": "test:js",
|
||||||
|
"events": [
|
||||||
|
"pull_request",
|
||||||
|
"push"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Update events that should trigger the test job(s)
|
|
@ -52,7 +52,8 @@
|
||||||
"test": "pnpm test:unit",
|
"test": "pnpm test:unit",
|
||||||
"test:api": "API_TEST_REPORT_DIR=\"$PWD/tests/api\" pnpm exec wc-api-tests test api",
|
"test:api": "API_TEST_REPORT_DIR=\"$PWD/tests/api\" pnpm exec wc-api-tests test api",
|
||||||
"test:api-pw": "USE_WP_ENV=1 pnpm playwright test --config=tests/api-core-tests/playwright.config.js",
|
"test:api-pw": "USE_WP_ENV=1 pnpm playwright test --config=tests/api-core-tests/playwright.config.js",
|
||||||
"test:e2e-pw": "USE_WP_ENV=1 pnpm playwright test --config=tests/e2e-pw/playwright.config.js",
|
"test:e2e-pw": "USE_WP_ENV=1 pnpm playwright test --config=tests/e2e-pw/playwright.config.js --project=default",
|
||||||
|
"test:e2e:gutenberg": "pnpm playwright test --config=tests/e2e-pw/playwright.config.js --project=Gutenberg",
|
||||||
"test:perf": "./k6 run ./tests/performance/tests/gh-action-pr-requests.js",
|
"test:perf": "./k6 run ./tests/performance/tests/gh-action-pr-requests.js",
|
||||||
"test:env:start": "pnpm env:test",
|
"test:env:start": "pnpm env:test",
|
||||||
"test:php": "./vendor/bin/phpunit -c ./phpunit.xml",
|
"test:php": "./vendor/bin/phpunit -c ./phpunit.xml",
|
||||||
|
@ -114,7 +115,11 @@
|
||||||
],
|
],
|
||||||
"testEnv": {
|
"testEnv": {
|
||||||
"start": "env:test"
|
"start": "env:test"
|
||||||
}
|
},
|
||||||
|
"events": [
|
||||||
|
"pull_request",
|
||||||
|
"push"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "PHP 8.0",
|
"name": "PHP 8.0",
|
||||||
|
@ -135,7 +140,11 @@
|
||||||
"config": {
|
"config": {
|
||||||
"phpVersion": "8.0"
|
"phpVersion": "8.0"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"events": [
|
||||||
|
"pull_request",
|
||||||
|
"push"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "PHP WP: latest - 1",
|
"name": "PHP WP: latest - 1",
|
||||||
|
@ -156,7 +165,11 @@
|
||||||
"config": {
|
"config": {
|
||||||
"wpVersion": "latest-1"
|
"wpVersion": "latest-1"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"events": [
|
||||||
|
"pull_request",
|
||||||
|
"push"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "PHP WP: latest - 2",
|
"name": "PHP WP: latest - 2",
|
||||||
|
@ -177,7 +190,11 @@
|
||||||
"config": {
|
"config": {
|
||||||
"wpVersion": "latest-2"
|
"wpVersion": "latest-2"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"events": [
|
||||||
|
"pull_request",
|
||||||
|
"push"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "PHP WP: nightly",
|
"name": "PHP WP: nightly",
|
||||||
|
@ -199,7 +216,11 @@
|
||||||
"config": {
|
"config": {
|
||||||
"wpVersion": "nightly"
|
"wpVersion": "nightly"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"events": [
|
||||||
|
"pull_request",
|
||||||
|
"push"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Core e2e tests",
|
"name": "Core e2e tests",
|
||||||
|
@ -226,6 +247,29 @@
|
||||||
],
|
],
|
||||||
"testEnv": {
|
"testEnv": {
|
||||||
"start": "env:test"
|
"start": "env:test"
|
||||||
|
},
|
||||||
|
"events": [
|
||||||
|
"pull_request",
|
||||||
|
"push"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Core e2e tests - Gutenberg",
|
||||||
|
"testType": "e2e",
|
||||||
|
"command": "test:e2e:gutenberg",
|
||||||
|
"shardingArguments": [
|
||||||
|
"--shard=1/5",
|
||||||
|
"--shard=2/5",
|
||||||
|
"--shard=3/5",
|
||||||
|
"--shard=4/5",
|
||||||
|
"--shard=5/5"
|
||||||
|
],
|
||||||
|
"changes": [],
|
||||||
|
"events": [
|
||||||
|
"daily-e2e"
|
||||||
|
],
|
||||||
|
"testEnv": {
|
||||||
|
"start": "env:test && cd plugins/woocommerce && PLUGIN_REPOSITORY='WordPress/gutenberg' PLUGIN_NAME=Gutenberg PLUGIN_SLUG=gutenberg ./tests/e2e-pw/bin/install-plugin.sh"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -278,7 +322,11 @@
|
||||||
],
|
],
|
||||||
"testEnv": {
|
"testEnv": {
|
||||||
"start": "env:test"
|
"start": "env:test"
|
||||||
}
|
},
|
||||||
|
"events": [
|
||||||
|
"pull_request",
|
||||||
|
"push"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Core API tests - HPOS disabled",
|
"name": "Core API tests - HPOS disabled",
|
||||||
|
@ -323,7 +371,11 @@
|
||||||
],
|
],
|
||||||
"testEnv": {
|
"testEnv": {
|
||||||
"start": "env:perf"
|
"start": "env:perf"
|
||||||
}
|
},
|
||||||
|
"events": [
|
||||||
|
"pull_request",
|
||||||
|
"push"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Metrics",
|
"name": "Metrics",
|
||||||
|
@ -339,6 +391,10 @@
|
||||||
"templates/**/*.php",
|
"templates/**/*.php",
|
||||||
"templates/**/*.html",
|
"templates/**/*.html",
|
||||||
"tests/metrics/**"
|
"tests/metrics/**"
|
||||||
|
],
|
||||||
|
"events": [
|
||||||
|
"pull_request",
|
||||||
|
"push"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -70,9 +70,15 @@ const config = {
|
||||||
},
|
},
|
||||||
projects: [
|
projects: [
|
||||||
{
|
{
|
||||||
name: 'Chrome',
|
name: 'default',
|
||||||
use: { ...devices[ 'Desktop Chrome' ] },
|
use: { ...devices[ 'Desktop Chrome' ] },
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'Gutenberg',
|
||||||
|
use: { ...devices[ 'Desktop Chrome' ] },
|
||||||
|
testIgnore:
|
||||||
|
/.*smoke-tests\/*|.*js-file-monitor\/*|.*admin-tasks\/*|.*activate-and-setup\/*|.*admin-analytics\/*|.*admin-marketing\/*/,
|
||||||
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -55,6 +55,10 @@
|
||||||
"jest.config.js",
|
"jest.config.js",
|
||||||
"tsconfig.json",
|
"tsconfig.json",
|
||||||
"src/**/*.ts"
|
"src/**/*.ts"
|
||||||
|
],
|
||||||
|
"events": [
|
||||||
|
"pull_request",
|
||||||
|
"push"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -83,6 +83,10 @@
|
||||||
"jest.config.js",
|
"jest.config.js",
|
||||||
"tsconfig.json",
|
"tsconfig.json",
|
||||||
"src/**/*.ts"
|
"src/**/*.ts"
|
||||||
|
],
|
||||||
|
"events": [
|
||||||
|
"pull_request",
|
||||||
|
"push"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue