diff --git a/.github/workflows/spectral-validation.yml b/.github/workflows/spectral-validation.yml new file mode 100644 index 00000000..3d7a005f --- /dev/null +++ b/.github/workflows/spectral-validation.yml @@ -0,0 +1,18 @@ +name: Run Spectral on Pull Requests + +on: + pull_request: + types: [opened, synchronize, reopened] + branches: [master] + +jobs: + build: + name: Run Spectral validation + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: stoplightio/spectral-action@latest + with: + file_glob: 'bkg/v1/bkg.yaml' + spectral_ruleset: '.stoplight/styleguide.json' \ No newline at end of file