feat(calm): add deployment decorator standard to calm draft schema #193
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: Validation of CALM Samples | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| branches: | |
| - 'main' | |
| paths: | |
| - 'calm/draft/**' | |
| - 'calm/pattern/**' | |
| - 'calm/samples/**' | |
| - 'shared/src/spectral/**' | |
| push: | |
| branches: | |
| - 'main' | |
| paths: | |
| - 'calm/draft/**' | |
| - 'calm/pattern/**' | |
| - 'calm/samples/**' | |
| - 'shared/src/spectral/**' | |
| jobs: | |
| spectrals: | |
| name: Run Spectral | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Check out the repository | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| # Run Spectral | |
| - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6 | |
| with: | |
| node-version: v22 | |
| - name: Install workspace | |
| run: npm ci | |
| - name: Build workspace | |
| run: npm run build | |
| - name: Install dependencies for Spectral | |
| run: npm install @stoplight/spectral-cli rollup | |
| - name: Run Example Spectral Linting | |
| run: npx spectral lint --ruleset ./shared/dist/spectral/rules-architecture.js 'calm/samples/api-gateway-architecture(*.json|*.yaml)' |