Skip to content

Add support for 'link' type action in DataViews #122979

Add support for 'link' type action in DataViews

Add support for 'link' type action in DataViews #122979

Triggered via pull request December 25, 2024 14:03
Status Failure
Total duration 4m 13s
Artifacts

unit-test.yml

on: pull_request
Compute previous WordPress version
0s
Compute previous WordPress version
Build JavaScript assets for PHP unit tests
2m 53s
Build JavaScript assets for PHP unit tests
PHP coding standards
17s
PHP coding standards
Matrix: unit-js-date
Matrix: unit-js
Matrix: test-php
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 15 warnings
Build JavaScript assets for PHP unit tests: packages/dataviews/src/components/dataviews-item-actions/index.tsx#L138
Argument of type 'ActionModal<Item> | ActionLink<Item>' is not assignable to parameter of type 'ActionModal<Item> | null'.
Build JavaScript assets for PHP unit tests: packages/dataviews/src/components/dataviews/stories/fixtures.tsx#L579
Type '{ id: string; label: string; isPrimary: true; icon: Element; hideModalHeader: true; RenderModal: ({ items, closeModal }: RenderModalProps<SpaceObject>) => Element; }' is not assignable to type 'Action<SpaceObject>'.
Build JavaScript assets for PHP unit tests: packages/dataviews/src/components/dataviews/stories/fixtures.tsx#L611
Type '{ id: string; label: string; callback(): void; }' is not assignable to type 'Action<SpaceObject>'.
Build JavaScript assets for PHP unit tests: packages/dataviews/src/dataviews-layouts/list/index.tsx#L115
Type 'ActionModal<Item> | ActionLink<Item>' is not assignable to type 'ActionModal<Item>'.
Build JavaScript assets for PHP unit tests: packages/dataviews/src/test/dataviews.tsx#L89
Type '{ id: string; label: string; isDestructive: true; supportsBulk: true; RenderModal: () => React.JSX.Element; }' is not assignable to type 'Action<Data>'.
PHP
Process completed with exit code 1.
Compute previous WordPress version
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP coding standards
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
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 22)
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 22) 3/4
Both node-version and node-version-file inputs are specified, only node-version will be used
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 22) 2/4
Both node-version and node-version-file inputs are specified, only node-version will be used
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) 4/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 22) 1/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 22) 4/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 20) 1/4
Both node-version and node-version-file inputs are specified, only node-version will be used
Build JavaScript assets for PHP unit tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Mobile
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636