fix(ci): resolve self-hosted Claude path dynamically

This commit is contained in:
Tam Nhu Tran
2026-04-01 20:24:52 -04:00
parent 09276518a7
commit 44e2a49650
2 changed files with 24 additions and 8 deletions
@@ -22,8 +22,10 @@ describe('ai-review workflow', () => {
const toolchainStep = steps.find((step) => step.id === 'toolchain');
expect(toolchainStep).toBeDefined();
expect(toolchainStep?.name).toBe('Resolve self-hosted Claude executable');
expect(toolchainStep?.run).toContain('CLAUDE_PATH="/root/.local/bin/claude"');
expect(toolchainStep?.run).toContain('Missing self-hosted Claude executable');
expect(toolchainStep?.run).toContain('command -v claude');
expect(toolchainStep?.run).toContain('"/home/github-runner/.local/bin/claude"');
expect(toolchainStep?.run).toContain('"/root/.local/bin/claude"');
expect(toolchainStep?.run).toContain('Missing self-hosted Claude executable. Checked:');
expect(toolchainStep?.run).toContain('echo "claude_path=$CLAUDE_PATH" >> "$GITHUB_OUTPUT"');
const claudeReviewStep = steps.find((step) => step.id === 'claude-review');