Skip to content

Commit 097e186

Browse files
Mossakaclaude
andauthored
feat: add build test workflows for external test repos (#507)
* feat: add build test workflows for external test repos Add 7 agentic workflows that clone and test external repositories to validate firewall network rules work correctly for different language ecosystems: - Node.js: clsx, execa, p-limit (npm install/test) - Go: color, env, uuid (go mod download/test) - Rust: fd, zoxide (cargo build/test) - Java: gson, caffeine (mvn compile/test) - C++: fmt, json (cmake/make) - Deno: oak, std (deno test) - Bun: elysia, hono (bun install/test) Each workflow: - Triggers on pull_request and workflow_dispatch - Uses appropriate network allowlists (defaults, github, language-specific) - Reports results via PR comments with pass/fail tables - Adds language-specific labels on success Also updates postprocess-smoke-workflows.ts to include the new workflows for local build patching in CI. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * chore: merge main and regenerate build-test workflows Regenerate build-test lock files with gh-aw v0.42.0 after merging origin/main. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 24514b4 commit 097e186

15 files changed

Lines changed: 7534 additions & 0 deletions

.github/workflows/build-test-bun.lock.yml

Lines changed: 999 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
---
2+
description: Build Test Bun
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
types: [opened, synchronize, reopened]
7+
roles: all
8+
permissions:
9+
contents: read
10+
pull-requests: read
11+
issues: read
12+
name: Build Test Bun
13+
engine: copilot
14+
network:
15+
allowed:
16+
- defaults
17+
- github
18+
- node
19+
- "bun.sh"
20+
tools:
21+
bash:
22+
- "*"
23+
github:
24+
sandbox:
25+
mcp:
26+
container: "ghcr.io/github/gh-aw-mcpg"
27+
safe-outputs:
28+
add-comment:
29+
hide-older-comments: true
30+
add-labels:
31+
allowed: [build-test-bun]
32+
messages:
33+
run-failure: "**Build Test Failed** [{workflow_name}]({run_url}) - See logs for details"
34+
timeout-minutes: 15
35+
strict: true
36+
---
37+
38+
# Build Test: Bun
39+
40+
**IMPORTANT: Keep all outputs concise. Report results clearly with pass/fail status.**
41+
42+
## Test Requirements
43+
44+
1. **Install Bun**:
45+
```bash
46+
curl -fsSL https://bun.sh/install | bash
47+
export BUN_INSTALL="$HOME/.bun"
48+
export PATH="$BUN_INSTALL/bin:$PATH"
49+
```
50+
51+
2. **Clone Repository**: `git clone https://github.com/Mossaka/gh-aw-firewall-test-bun.git /tmp/test-bun`
52+
53+
3. **Test Projects**:
54+
- `elysia`: `cd /tmp/test-bun/elysia && bun install && bun test`
55+
- `hono`: `cd /tmp/test-bun/hono && bun install && bun test`
56+
57+
4. **For each project**, capture:
58+
- Install success/failure
59+
- Test pass/fail count
60+
- Any error messages
61+
62+
## Output
63+
64+
Add a comment to the current pull request with a summary table:
65+
66+
| Project | Install | Tests | Status |
67+
|---------|---------|-------|--------|
68+
| elysia | ✅/❌ | X/Y | PASS/FAIL |
69+
| hono | ✅/❌ | X/Y | PASS/FAIL |
70+
71+
**Overall: PASS/FAIL**
72+
73+
If ALL tests pass, add the label `build-test-bun` to the pull request.
74+
If ANY test fails, report the failure with error details.

0 commit comments

Comments
 (0)