Skip to content

Run Spectral on Pull Requests #5

Run Spectral on Pull Requests

Run Spectral on Pull Requests #5

Workflow file for this run

name: Run Spectral on Pull Requests
on:
pull_request:
types: [opened, synchronize]
branches:
- main
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'
spectral_ruleset: '@stoplight/spectral/rulesets/oas'