Skip to content

Commit 1b59e6e

Browse files
committed
fixup! fixup! ci(apollo-vertex): add registry component validation check
1 parent b3bacce commit 1b59e6e

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/scripts/test-registry/test-registry.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,21 @@ function testComponent(component: string, baseAppPath: string): TestResult {
1616
// Copy base app to temp directory
1717
cpSync(baseAppPath, testDir, { recursive: true });
1818

19-
// Run the test in the copied directory
20-
const output = execSync(`pnpm exec shadcn add "@uipath/${component}"`, {
19+
// Install the component from registry
20+
const addOutput = execSync(`pnpm exec shadcn add "@uipath/${component}"`, {
2121
encoding: 'utf-8',
2222
stdio: ['pipe', 'pipe', 'pipe'],
2323
cwd: testDir,
2424
});
2525

26-
return { component, success: true, output };
26+
// Run build to verify all imports resolve correctly
27+
const buildOutput = execSync('pnpm exec shadcn build', {
28+
encoding: 'utf-8',
29+
stdio: ['pipe', 'pipe', 'pipe'],
30+
cwd: testDir,
31+
});
32+
33+
return { component, success: true, output: `${addOutput}\n${buildOutput}` };
2734
} catch (error) {
2835
if (error instanceof Error && 'stdout' in error && 'stderr' in error) {
2936
return { component, success: false, output: `${error.stdout}\n${error.stderr}` };

0 commit comments

Comments
 (0)