Skip to content

Run Spectral on Pull Requests #3

Run Spectral on Pull Requests

Run Spectral on Pull Requests #3

Workflow file for this run

name: Run Spectral on Pull Requests
on:
- pull_request
- workflow_dispatch
jobs:
build:
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: 'openapi.yaml'
ruleset: '@stoplight/spectral/rulesets/oas'