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
44 changes: 8 additions & 36 deletions .github/workflows/repair-smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ jobs:
- name: Confirm repair summary was written
shell: powershell
run: |
$repairPath = Join-Path $env:RUNNER_TEMP 'smoke-test-repair-summary.json'
$repairPath = Join-Path (Get-Location).Path '.a11y-agent-team-repair-summary.json'
if (-not (Test-Path $repairPath)) { throw "Repair summary file was not written: $repairPath" }
$repairData = Get-Content $repairPath -Raw | ConvertFrom-Json
Write-Host "Repair summary operation: $($repairData.operation)"
if ($repairData.operation -ne 'repair') { throw "Expected repair summary operation='repair', got '$($repairData.operation)'" }
if ($repairData.operation -ne 'repair-install') { throw "Expected repair summary operation='repair-install', got '$($repairData.operation)'" }
Write-Host "Smoke test passed."

shell-repair-smoke:
Expand All @@ -110,37 +110,9 @@ jobs:
MCP_DIR="$FIXTURE_DIR/mcp-server"
mkdir -p "$CLAUDE_DIR" "$MCP_DIR"

python3 - <<'PYEOF'
import json, os

fixture_dir = os.environ['RUNNER_TEMP']
fixture = {
"schemaVersion": "1.0",
"operation": "install",
"scope": "project",
"targetDir": fixture_dir,
"installed": True,
"destinations": {
"claude": {"agentsDir": os.path.join(fixture_dir, ".claude", "agents")},
"copilot": {},
"copilotCli": {},
"codex": {},
"gemini": {},
"mcp": {"serverDir": os.path.join(fixture_dir, "mcp-server")}
},
"notes": [],
"issues": [],
"issueCount": 0,
"lastRepairRun": None,
"version": "4.6.0",
"elapsedSeconds": 0
}

out = os.path.join(fixture_dir, "smoke-test-summary.json")
with open(out, "w") as f:
json.dump(fixture, f, indent=2)
print(f"Written fixture to: {out}")
PYEOF
OUT="$FIXTURE_DIR/smoke-test-summary.json"
python3 -c "import json, os; d=os.environ['RUNNER_TEMP']; json.dump({'schemaVersion':'1.0','operation':'install','scope':'project','targetDir':d,'installed':True,'destinations':{'claude':{'agentsDir':os.path.join(d,'.claude','agents')},'copilot':{},'copilotCli':{},'codex':{},'gemini':{},'mcp':{'serverDir':os.path.join(d,'mcp-server')}},'notes':[],'issues':[],'issueCount':0,'lastRepairRun':None,'version':'4.6.0','elapsedSeconds':0}, open(os.path.join(d,'smoke-test-summary.json'),'w'), indent=2)"
echo "Written fixture to: $OUT"

- name: Run repair script in validate-only mode
run: |
Expand All @@ -156,14 +128,14 @@ PYEOF

- name: Confirm repair summary was written
run: |
REPAIR_PATH="$RUNNER_TEMP/smoke-test-repair-summary.json"
REPAIR_PATH="$(pwd)/.a11y-agent-team-repair-summary.json"
if [ ! -f "$REPAIR_PATH" ]; then
echo "ERROR: Repair summary file was not written: $REPAIR_PATH"
exit 1
fi
OPERATION=$(python3 -c "import json,sys; d=json.load(open('$REPAIR_PATH')); print(d.get('operation',''))")
if [ "$OPERATION" != "repair" ]; then
echo "ERROR: Expected operation='repair', got '$OPERATION'"
if [ "$OPERATION" != "repair-install" ]; then
echo "ERROR: Expected operation='repair-install', got '$OPERATION'"
exit 1
fi
echo "Smoke test passed."
10 changes: 5 additions & 5 deletions action/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Part of the [Accessibility Agents](https://github.com/Community-Access/accessibi
Add one step to any workflow:

```yaml
- uses: Community-Access/accessibility-agents/action@v5.3.0
- uses: Community-Access/accessibility-agents/action@v5.4.0
with:
scan-type: web
```
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Community-Access/accessibility-agents/action@v5.3.0
- uses: Community-Access/accessibility-agents/action@v5.4.0
with:
scan-type: web
fail-on: serious
Expand All @@ -67,7 +67,7 @@ jobs:
### Scan Office documents and PDFs

```yaml
- uses: Community-Access/accessibility-agents/action@v5.3.0
- uses: Community-Access/accessibility-agents/action@v5.4.0
with:
scan-type: all
profile: strict
Expand All @@ -77,7 +77,7 @@ jobs:
### Lenient scan (fail on critical only)

```yaml
- uses: Community-Access/accessibility-agents/action@v5.3.0
- uses: Community-Access/accessibility-agents/action@v5.4.0
with:
fail-on: critical
profile: minimal
Expand All @@ -86,7 +86,7 @@ jobs:
### Use outputs in subsequent steps

```yaml
- uses: Community-Access/accessibility-agents/action@v5.3.0
- uses: Community-Access/accessibility-agents/action@v5.4.0
id: a11y
with:
scan-type: web
Expand Down
Loading