Skip to content

Fix structured runs and agent session UX #318

Fix structured runs and agent session UX

Fix structured runs and agent session UX #318

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
jobs:
verify:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
- name: Install dependencies
run: npm ci
- name: Lint baseline (no net-new lint issues)
id: lint_baseline
continue-on-error: true
run: npm run lint:baseline -- --report-json artifacts/lint-regressions.json --report-md artifacts/lint-regressions.md
- name: Test
run: npm test
- name: Type-check
run: npm run type-check
- name: MCP Conformance
run: npm run test:mcp:conformance
env:
SWARMCLAW_MCP_CONFORMANCE_REQUIRED: "0"
- name: Build
run: npm run build:ci
- name: Publish lint baseline report
if: always()
run: |
if [ -f artifacts/lint-regressions.md ]; then
cat artifacts/lint-regressions.md >> "$GITHUB_STEP_SUMMARY"
fi
- name: Upload lint baseline artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: lint-baseline-report
path: artifacts/lint-regressions.*
if-no-files-found: ignore
- name: Enforce lint baseline gate
if: steps.lint_baseline.outcome == 'failure'
run: |
echo "Lint baseline failed. See lint-baseline-report artifact and workflow summary for details."
exit 1