Skip to content

Add simple validation against samples #4

Add simple validation against samples

Add simple validation against samples #4

name: Run Spectral Validation on all samples
on:
- pull_request
# TODO run only when schema or patterns change
permissions:
checks: write
jobs:
spectrals:
name: Run Spectral
runs-on: ubuntu-latest
steps:
# Check out the repository
- uses: actions/checkout@v3
# Run Spectral
- uses: stoplightio/spectral-action@latest
with:
file_glob: 'spectral/examples/bad-rest-api.json'
# file_glob: 'calm/samples/**/*.(yaml|json)'
spectral_ruleset: 'spectral/calm-validation-rules.yaml'