Skip to content

WIP Experiment: combine gradient and background image into background-image #102362

WIP Experiment: combine gradient and background image into background-image

WIP Experiment: combine gradient and background image into background-image #102362

Triggered via pull request April 23, 2024 02:26
Status Failure
Total duration 7m 48s
Artifacts 1

unit-test.yml

on: pull_request
Compute previous WordPress version
3s
Compute previous WordPress version
Build JavaScript assets for PHP unit tests
4m 44s
Build JavaScript assets for PHP unit tests
PHP coding standards
38s
PHP coding standards
Matrix: unit-js-date
Matrix: unit-js
Matrix: test-php
Fit to window
Zoom out
Zoom in

Annotations

40 errors and 24 warnings
PHP coding standards
Process completed with exit code 2.
PHP coding standards: lib/class-wp-theme-json-gutenberg.php#L2152
Array keys must be surrounded by spaces unless they contain a string or an integer.
PHP coding standards: lib/block-supports/colors.php#L108
Line indented incorrectly; expected at least 1 tabs, found 0
PHP coding standards: lib/block-supports/colors.php#L108
Spaces must be used for mid-line alignment; tabs are not allowed
PHP coding standards: lib/block-supports/background.php#L71
Using short ternaries is not allowed as they are rarely used correctly
PHP coding standards
Process completed with exit code 1.
JavaScript (Node.js 21) 4/4: packages/style-engine/src/test/index.js#L272
Error: expect(received).toEqual(expected) // deep equality - Expected - 6 + Received + 1 @@ -3,15 +3,10 @@ "key": "color", "selector": ".some-selector", "value": "#dddddd", }, Object { - "key": "background", - "selector": ".some-selector", - "value": "linear-gradient(135deg,rgb(255,203,112) 0%,rgb(33,32,33) 42%,rgb(65,88,208) 100%)", - }, - Object { "key": "backgroundColor", "selector": ".some-selector", "value": "#555555", }, Object { @@ -110,11 +105,11 @@ "value": "10px 10px red", }, Object { "key": "backgroundImage", "selector": ".some-selector", - "value": "url( 'https://example.com/image.jpg' )", + "value": "linear-gradient(135deg,rgb(255,203,112) 0%,rgb(33,32,33) 42%,rgb(65,88,208) 100%), url( 'https://example.com/image.jpg' )", }, Object { "key": "backgroundPosition", "selector": ".some-selector", "value": "50% 50%", at Object.toEqual (/home/runner/work/gutenberg/gutenberg/packages/style-engine/src/test/index.js:272:5) at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:300:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:233:10) at _callCircusTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:315:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:251:3) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:125:9) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9) at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:70:3) at runAndTransformResultsToJestFormat (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/testWorker.js:106:12)
JavaScript (Node.js 21) 4/4
Process completed with exit code 1.
JavaScript (Node.js 20) 4/4: packages/style-engine/src/test/index.js#L272
Error: expect(received).toEqual(expected) // deep equality - Expected - 6 + Received + 1 @@ -3,15 +3,10 @@ "key": "color", "selector": ".some-selector", "value": "#dddddd", }, Object { - "key": "background", - "selector": ".some-selector", - "value": "linear-gradient(135deg,rgb(255,203,112) 0%,rgb(33,32,33) 42%,rgb(65,88,208) 100%)", - }, - Object { "key": "backgroundColor", "selector": ".some-selector", "value": "#555555", }, Object { @@ -110,11 +105,11 @@ "value": "10px 10px red", }, Object { "key": "backgroundImage", "selector": ".some-selector", - "value": "url( 'https://example.com/image.jpg' )", + "value": "linear-gradient(135deg,rgb(255,203,112) 0%,rgb(33,32,33) 42%,rgb(65,88,208) 100%), url( 'https://example.com/image.jpg' )", }, Object { "key": "backgroundPosition", "selector": ".some-selector", "value": "50% 50%", at Object.toEqual (/home/runner/work/gutenberg/gutenberg/packages/style-engine/src/test/index.js:272:5) at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:300:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:233:10) at _callCircusTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:315:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:251:3) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:125:9) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9) at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:70:3) at runAndTransformResultsToJestFormat (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/testWorker.js:106:12)
JavaScript (Node.js 20) 4/4
Process completed with exit code 1.
PHP 8.2 (WP 6.4.4) on ubuntu-latest
Process completed with exit code 1.
PHP 7.3 multisite on ubuntu-latest
The job was canceled because "_8_2_6_4_4" failed.
PHP 7.3 multisite on ubuntu-latest
Process completed with exit code 1.
PHP 7.4 (WP 6.4.4) on ubuntu-latest
The job was canceled because "_8_2_6_4_4" failed.
PHP 7.4 (WP 6.4.4) on ubuntu-latest
Process completed with exit code 1.
PHP 7.0 (WP 6.4.4) on ubuntu-latest
The job was canceled because "_8_2_6_4_4" failed.
PHP 7.0 (WP 6.4.4) on ubuntu-latest
Process completed with exit code 1.
PHP 8.1 multisite on ubuntu-latest
The job was canceled because "_8_2_6_4_4" failed.
PHP 8.1 multisite on ubuntu-latest
The operation was canceled.
PHP 8.0 multisite on ubuntu-latest
The job was canceled because "_8_2_6_4_4" failed.
PHP 8.0 multisite on ubuntu-latest
The operation was canceled.
PHP 8.0 on ubuntu-latest
The job was canceled because "_8_2_6_4_4" failed.
PHP 8.0 on ubuntu-latest
The operation was canceled.
PHP 7.2 multisite on ubuntu-latest
The job was canceled because "_8_2_6_4_4" failed.
PHP 7.2 multisite on ubuntu-latest
The operation was canceled.
PHP 8.2 multisite on ubuntu-latest
The job was canceled because "_8_2_6_4_4" failed.
PHP 8.2 multisite on ubuntu-latest
The operation was canceled.
PHP 8.2 on ubuntu-latest
The job was canceled because "_8_2_6_4_4" failed.
PHP 8.2 on ubuntu-latest
The operation was canceled.
PHP 7.2 on ubuntu-latest
The job was canceled because "_8_2_6_4_4" failed.
PHP 7.2 on ubuntu-latest
The operation was canceled.
PHP 7.4 on ubuntu-latest
The job was canceled because "_8_2_6_4_4" failed.
PHP 7.4 on ubuntu-latest
The operation was canceled.
PHP 7.3 on ubuntu-latest
The job was canceled because "_8_2_6_4_4" failed.
PHP 7.3 on ubuntu-latest
The operation was canceled.
PHP 7.4 multisite on ubuntu-latest
The job was canceled because "_8_2_6_4_4" failed.
PHP 7.4 multisite on ubuntu-latest
The operation was canceled.
PHP 8.1 on ubuntu-latest
The job was canceled because "_8_2_6_4_4" failed.
PHP 8.1 on ubuntu-latest
The operation was canceled.
PHP
Process completed with exit code 1.
PHP coding standards: lib/block-supports/colors.php#L90
Unused variable $has_gradients_support.
JavaScript Date Tests (Node.js 21)
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript Date Tests (Node.js 21)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
JavaScript Date Tests (Node.js 20)
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript Date Tests (Node.js 20)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
JavaScript (Node.js 21) 4/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 21) 4/4
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
JavaScript (Node.js 20) 4/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 20) 4/4
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
JavaScript (Node.js 21) 2/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 21) 2/4
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
JavaScript (Node.js 20) 2/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 20) 2/4
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
JavaScript (Node.js 21) 1/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 21) 1/4
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
JavaScript (Node.js 21) 3/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 21) 3/4
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
JavaScript (Node.js 20) 1/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 20) 1/4
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
JavaScript (Node.js 20) 3/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 20) 3/4
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Mobile
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Build JavaScript assets for PHP unit tests
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP 8.2 (WP 6.4.4) on ubuntu-latest
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

Artifacts

Produced during runtime
Name Size
build-assets Expired
9.55 MB