Add twenty-partners on internal ci apps (#21975)
as title <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/twentyhq/twenty/pull/21975?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="Review in cubic" src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
This commit is contained in:
@@ -8,7 +8,7 @@ on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
application:
|
||||
description: 'Internal app folder name to test (e.g. "twenty-linear"). Leave empty to test all non-excluded apps. Runs even if in CI_EXCLUDED_APPLICATIONS.'
|
||||
description: 'Internal app folder name to test (e.g. "twenty-linear"). Leave empty to test all apps.'
|
||||
required: false
|
||||
default: ''
|
||||
type: string
|
||||
@@ -62,11 +62,6 @@ jobs:
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const root = 'packages/twenty-apps/internal';
|
||||
// CI_EXCLUDED_APPLICATIONS is temporary: it skips applications from CI to
|
||||
// keep this PR small while the remaining apps are made CI-ready. Remove an
|
||||
// app from this list once its checks pass, and delete the list entirely
|
||||
// once every application is covered.
|
||||
const CI_EXCLUDED_APPLICATIONS = ['twenty-meeting-bot', 'twenty-partners'];
|
||||
const eventName = process.env.EVENT_NAME;
|
||||
const changedFiles = JSON.parse(process.env.CHANGED_FILES || '[]');
|
||||
const changedApps = new Set();
|
||||
@@ -81,9 +76,9 @@ jobs:
|
||||
.filter((name) => fs.existsSync(path.join(root, name, 'package.json')))
|
||||
.filter((name) => {
|
||||
if (eventName === 'workflow_dispatch') {
|
||||
return requestedApp ? name === requestedApp : !CI_EXCLUDED_APPLICATIONS.includes(name);
|
||||
return requestedApp ? name === requestedApp : true;
|
||||
}
|
||||
return !CI_EXCLUDED_APPLICATIONS.includes(name) && changedApps.has(name);
|
||||
return changedApps.has(name);
|
||||
})
|
||||
.map((name) => {
|
||||
const appPath = path.join(root, name);
|
||||
|
||||
Reference in New Issue
Block a user