memory: ship rem CLI; sync installs memory tools #480
Workflow file for this run
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: | |
| skill-frontmatter: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Validate SKILL.md frontmatter | |
| run: | | |
| fail=0 | |
| for f in skills/*/SKILL.md; do | |
| # Extract YAML between --- delimiters | |
| fm=$(awk '/^---$/{if(n++)exit;next}n' "$f") | |
| if [ -z "$fm" ]; then | |
| echo "FAIL: $f - no frontmatter" | |
| fail=1 | |
| continue | |
| fi | |
| # Check name and description exist | |
| name=$(echo "$fm" | grep -oP '^name:\s*\K.*' | sed 's/^["'"'"']//;s/["'"'"']$//') | |
| desc=$(echo "$fm" | grep -oP '^description:\s*\K.*' | sed 's/^["'"'"']//;s/["'"'"']$//') | |
| if [ -z "$name" ] || [ -z "$desc" ]; then | |
| echo "FAIL: $f - missing name or description" | |
| fail=1 | |
| continue | |
| fi | |
| # Validate YAML parses (catch unquoted colons etc.) | |
| if ! echo "$fm" | python3 -c "import sys,yaml; yaml.safe_load(sys.stdin)" 2>/tmp/yaml-err; then | |
| echo "FAIL: $f - invalid YAML: $(cat /tmp/yaml-err)" | |
| fail=1 | |
| continue | |
| fi | |
| echo "OK: $f ($name)" | |
| done | |
| exit $fail | |
| build-and-lint: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| module: | |
| - . | |
| - memory/tools/knowledge-sync | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.24" | |
| cache: false | |
| - name: Test | |
| working-directory: ${{ matrix.module }} | |
| run: go test ./... | |
| - name: Build | |
| working-directory: ${{ matrix.module }} | |
| run: go build ./... | |
| - name: Vet | |
| working-directory: ${{ matrix.module }} | |
| run: go vet ./... | |
| - name: Lint | |
| uses: golangci/golangci-lint-action@v7 | |
| with: | |
| version: v2.12.2 | |
| working-directory: ${{ matrix.module }} | |
| npm-wrapper: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Test npm wrapper | |
| run: node --test npm/install.test.js |