Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: run tests twice in CI, allowing the first try to fail #135

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions playground/config/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,7 @@ module.exports = {
enabled: true,
config: {
importOnBootstrap: false,
minify: false,
customTypes: [
{
configName: "home",
queryString: "api::home.home",
uid: ["slug"],
components: [
"Profile",
"Profile.ContactInfo",
],
}
]
minify: true,
},
},
};
5 changes: 0 additions & 5 deletions playground/src/api/home/content-types/home/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@
"title": {
"type": "string"
},
"Profile": {
"type": "component",
"repeatable": false,
"component": "core.profile"
},
"slug": {
"type": "uid",
"targetField": "title"
Expand Down
15 changes: 0 additions & 15 deletions playground/src/components/core/contact-info.json

This file was deleted.

18 changes: 0 additions & 18 deletions playground/src/components/core/profile.json

This file was deleted.

30 changes: 1 addition & 29 deletions playground/types/generated/components.d.ts
Original file line number Diff line number Diff line change
@@ -1,33 +1,5 @@
import type { Schema, Attribute } from '@strapi/strapi';

export interface CoreProfile extends Schema.Component {
collectionName: 'components_core_profiles';
info: {
displayName: 'Profile';
description: '';
};
attributes: {
title: Attribute.String;
ContactInfo: Attribute.Component<'core.contact-info', true>;
};
}

export interface CoreContactInfo extends Schema.Component {
collectionName: 'components_core_contact_infos';
info: {
displayName: 'ContactInfo';
};
attributes: {
Phonenumber: Attribute.String;
Email: Attribute.String;
};
}

declare module '@strapi/types' {
export module Shared {
export interface Components {
'core.profile': CoreProfile;
'core.contact-info': CoreContactInfo;
}
}
export module Shared {}
}
93 changes: 46 additions & 47 deletions playground/types/generated/contentTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,50 @@ export interface AdminTransferTokenPermission extends Schema.CollectionType {
};
}

export interface ApiHomeHome extends Schema.SingleType {
collectionName: 'homes';
info: {
singularName: 'home';
pluralName: 'homes';
displayName: 'Home';
description: '';
};
options: {
draftAndPublish: false;
};
attributes: {
title: Attribute.String;
slug: Attribute.UID<'api::home.home', 'title'>;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
createdBy: Attribute.Relation<'api::home.home', 'oneToOne', 'admin::user'> &
Attribute.Private;
updatedBy: Attribute.Relation<'api::home.home', 'oneToOne', 'admin::user'> &
Attribute.Private;
};
}

export interface ApiPagePage extends Schema.CollectionType {
collectionName: 'pages';
info: {
singularName: 'page';
pluralName: 'pages';
displayName: 'Page';
};
options: {
draftAndPublish: false;
};
attributes: {
title: Attribute.String & Attribute.Required;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
createdBy: Attribute.Relation<'api::page.page', 'oneToOne', 'admin::user'> &
Attribute.Private;
updatedBy: Attribute.Relation<'api::page.page', 'oneToOne', 'admin::user'> &
Attribute.Private;
};
}

export interface PluginUploadFile extends Schema.CollectionType {
collectionName: 'files';
info: {
Expand Down Expand Up @@ -788,51 +832,6 @@ export interface PluginUsersPermissionsUser extends Schema.CollectionType {
};
}

export interface ApiHomeHome extends Schema.SingleType {
collectionName: 'homes';
info: {
singularName: 'home';
pluralName: 'homes';
displayName: 'Home';
description: '';
};
options: {
draftAndPublish: false;
};
attributes: {
title: Attribute.String;
Profile: Attribute.Component<'core.profile'>;
slug: Attribute.UID<'api::home.home', 'title'>;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
createdBy: Attribute.Relation<'api::home.home', 'oneToOne', 'admin::user'> &
Attribute.Private;
updatedBy: Attribute.Relation<'api::home.home', 'oneToOne', 'admin::user'> &
Attribute.Private;
};
}

export interface ApiPagePage extends Schema.CollectionType {
collectionName: 'pages';
info: {
singularName: 'page';
pluralName: 'pages';
displayName: 'Page';
};
options: {
draftAndPublish: false;
};
attributes: {
title: Attribute.String & Attribute.Required;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
createdBy: Attribute.Relation<'api::page.page', 'oneToOne', 'admin::user'> &
Attribute.Private;
updatedBy: Attribute.Relation<'api::page.page', 'oneToOne', 'admin::user'> &
Attribute.Private;
};
}

declare module '@strapi/types' {
export module Shared {
export interface ContentTypes {
Expand All @@ -843,6 +842,8 @@ declare module '@strapi/types' {
'admin::api-token-permission': AdminApiTokenPermission;
'admin::transfer-token': AdminTransferToken;
'admin::transfer-token-permission': AdminTransferTokenPermission;
'api::home.home': ApiHomeHome;
'api::page.page': ApiPagePage;
'plugin::upload.file': PluginUploadFile;
'plugin::upload.folder': PluginUploadFolder;
'plugin::content-releases.release': PluginContentReleasesRelease;
Expand All @@ -851,8 +852,6 @@ declare module '@strapi/types' {
'plugin::users-permissions.permission': PluginUsersPermissionsPermission;
'plugin::users-permissions.role': PluginUsersPermissionsRole;
'plugin::users-permissions.user': PluginUsersPermissionsUser;
'api::home.home': ApiHomeHome;
'api::page.page': ApiPagePage;
}
}
}
Loading