Add simple validation against samples #4
Workflow file for this run
This file contains 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: 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' |