docs(skill): document --markdown mode and MarkdownDoc component #15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build-and-test: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Show Swift version | |
| run: swift --version | |
| - name: Set up Node (for runtime JS smoke harness) | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Install dev deps (jsdom for runtime smoke) | |
| run: npm install --no-audit --no-fund --silent | |
| - name: Build | |
| run: make build | |
| - name: Verify binary size under 300KB | |
| run: | | |
| SIZE=$(stat -f%z webview-cli) | |
| echo "Binary size: $SIZE bytes" | |
| if [ "$SIZE" -gt 307200 ]; then | |
| echo "Binary exceeds 300KB budget (v0.2.0 baseline; markdown editor adds ~100KB over the v0.1.x 193KB base)" | |
| exit 1 | |
| fi | |
| - name: Smoke tests | |
| run: make test | |
| - name: Upload binary artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: webview-cli-darwin-arm64 | |
| path: webview-cli | |
| retention-days: 30 |