From 02bc629a3a6262e7242b92152bcbb43d5099f964 Mon Sep 17 00:00:00 2001 From: "J. Koster" Date: Thu, 13 Feb 2025 15:40:05 +0100 Subject: [PATCH] SD-1667 Add Spectral ruleset validation * Example on booking, to validate if it works --- .github/workflows/spectral-validation.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/spectral-validation.yml 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