Skip to content

Commit

Permalink
Create spectral.yml [skip ci]
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Atkins <christopher316@gmail.com>
  • Loading branch information
caindy committed Dec 18, 2023
1 parent 173ea67 commit ddf52c7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/spectral.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Run Spectral on Pull Requests

on:
workflow_dispatch:

jobs:
build:
name: Run Spectral
runs-on: ubuntu-latest
steps:
# Check out the repository
- uses: actions/checkout@v2

# Run Spectral
- uses: stoplightio/spectral-action@latest
with:
file_glob: 'openapi.yaml'
spectral_ruleset: 'spectral:oas'

0 comments on commit ddf52c7

Please sign in to comment.