feat: add strangler-fig, saga-pattern, cqrs-pattern, outbox-pattern, … #129
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: Validate | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| markdown-lint: | |
| name: Markdown Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| - name: Install markdownlint-cli2 | |
| run: npm install -g markdownlint-cli2 | |
| - name: Lint markdown files | |
| run: | | |
| markdownlint-cli2 "**/*.md" \ | |
| --config .markdownlint.json \ | |
| --ignore "site/**" \ | |
| --ignore "node_modules/**" \ | |
| --ignore "*.lock" | |
| frontmatter-validation: | |
| name: Frontmatter & Format | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| - name: Validate skill/agent/hook format | |
| run: node scripts/validate-frontmatter.js | |
| link-check: | |
| name: Internal Link Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| - name: Install markdown-link-check | |
| run: npm install -g markdown-link-check | |
| - name: Check internal links in guides | |
| run: | | |
| find guides -name "*.md" \ | |
| -not -path "guides/fr/*" \ | |
| -not -path "guides/de/*" \ | |
| -not -path "guides/es/*" \ | |
| -not -path "guides/nl/*" \ | |
| | head -30 \ | |
| | xargs -I{} markdown-link-check -q -c .markdown-link-check.json {} | |
| manifest-consistency: | |
| name: Manifest Consistency | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| - name: Validate manifest alignment | |
| run: node scripts/validate-manifests.js | |
| freshness-check: | |
| name: Skill Freshness | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| - name: Check skill/agent freshness | |
| run: node scripts/check-freshness.js | |
| stack-validation: | |
| name: Workspace Stacks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| - name: Validate workspace stack completeness | |
| run: node scripts/validate-stacks.js | |
| cli-smoke-tests: | |
| name: CLI Smoke Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| - name: Run CLI smoke tests | |
| run: node scripts/test-cli.js |