Skip to content

Commit e0bf44b

Browse files
CopilotMossaka
andcommitted
feat: add post-steps to install awf from source in smoke workflows
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
1 parent 1b6ebf7 commit e0bf44b

6 files changed

Lines changed: 57 additions & 3 deletions

File tree

.github/workflows/smoke-chroot.lock.yml

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/smoke-chroot.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,21 @@ safe-outputs:
4343
run-success: "**Chroot tests passed!** [{workflow_name}]({run_url}) - All security and functionality tests succeeded."
4444
run-failure: "**Chroot tests failed** [{workflow_name}]({run_url}) {status} - See logs for details."
4545
timeout-minutes: 20
46+
post-steps:
47+
- name: Install awf from source
48+
run: |
49+
echo "=== Installing awf from source code ==="
50+
cd ${{ github.workspace }}
51+
npm ci
52+
npm run build
53+
54+
# Create symlink to override installed binary
55+
sudo ln -sf ${{ github.workspace }}/dist/cli.js /usr/local/bin/awf
56+
sudo chmod +x ${{ github.workspace }}/dist/cli.js
57+
58+
# Verify installation
59+
echo "awf version after source install:"
60+
awf --version || node ${{ github.workspace }}/dist/cli.js --version
4661
steps:
4762
- name: Capture host versions for verification
4863
run: |

.github/workflows/smoke-claude.lock.yml

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/smoke-claude.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,21 @@ safe-outputs:
4848
run-success: "🎬 **THE END** — [{workflow_name}]({run_url}) **MISSION: ACCOMPLISHED!** The hero saves the day! ✨"
4949
run-failure: "💫 **TO BE CONTINUED...** [{workflow_name}]({run_url}) {status}! Our hero faces unexpected challenges..."
5050
timeout-minutes: 10
51+
post-steps:
52+
- name: Install awf from source
53+
run: |
54+
echo "=== Installing awf from source code ==="
55+
cd ${{ github.workspace }}
56+
npm ci
57+
npm run build
58+
59+
# Create symlink to override installed binary
60+
sudo ln -sf ${{ github.workspace }}/dist/cli.js /usr/local/bin/awf
61+
sudo chmod +x ${{ github.workspace }}/dist/cli.js
62+
63+
# Verify installation
64+
echo "awf version after source install:"
65+
awf --version || node ${{ github.workspace }}/dist/cli.js --version
5166
---
5267

5368
# Smoke Test: Claude Engine Validation

.github/workflows/smoke-copilot.lock.yml

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/smoke-copilot.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,21 @@ safe-outputs:
4646
run-failure: "📰 DEVELOPING STORY: [{workflow_name}]({run_url}) reports {status}. Our correspondents are investigating the incident..."
4747
timeout-minutes: 5
4848
strict: true
49+
post-steps:
50+
- name: Install awf from source
51+
run: |
52+
echo "=== Installing awf from source code ==="
53+
cd ${{ github.workspace }}
54+
npm ci
55+
npm run build
56+
57+
# Create symlink to override installed binary
58+
sudo ln -sf ${{ github.workspace }}/dist/cli.js /usr/local/bin/awf
59+
sudo chmod +x ${{ github.workspace }}/dist/cli.js
60+
61+
# Verify installation
62+
echo "awf version after source install:"
63+
awf --version || node ${{ github.workspace }}/dist/cli.js --version
4964
---
5065

5166
# Smoke Test: Copilot Engine Validation

0 commit comments

Comments
 (0)