Skip to content
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
25 changes: 12 additions & 13 deletions .github/workflows/ci-cd-gaps-assessment.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 12 additions & 13 deletions .github/workflows/pelis-agent-factory-advisor.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions scripts/ci/workflow-gh-aw-install.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import * as fs from 'fs';
import * as path from 'path';

const workflowsDir = path.resolve(__dirname, '../../.github/workflows');
const lockFiles = fs.readdirSync(workflowsDir).filter(file => file.endsWith('.lock.yml'));

describe('workflow gh-aw extension installs', () => {
it('uses the resilient gh-aw installer in every lock workflow', () => {
const workflowsWithLegacyInstall: string[] = [];
let foundGhAwInstallStep = false;

for (const lockFile of lockFiles) {
const workflowContent = fs.readFileSync(path.join(workflowsDir, lockFile), 'utf-8');

if (
workflowContent.includes('gh extension install github/gh-aw') ||
workflowContent.includes('gh extension upgrade gh-aw || true')
) {
workflowsWithLegacyInstall.push(lockFile);
}

if (!workflowContent.includes('name: Install gh-aw extension')) {
continue;
}

foundGhAwInstallStep = true;
expect(workflowContent).toMatch(/install-gh-aw\.sh/);
expect(workflowContent).toMatch(/-type f -executable/);
expect(workflowContent).toMatch(/Failed to find gh-aw binary for MCP server/);
}

Comment thread
lpcox marked this conversation as resolved.
expect(foundGhAwInstallStep).toBe(true);
expect(workflowsWithLegacyInstall).toEqual([]);
});
});
Loading