Skip to content

Instantly share code, notes, and snippets.

@mcroissant
Created April 26, 2021 14:35
Show Gist options
  • Save mcroissant/a159f9e3e32f13b720d3617877331e23 to your computer and use it in GitHub Desktop.
Save mcroissant/a159f9e3e32f13b720d3617877331e23 to your computer and use it in GitHub Desktop.
Gitlab CI for spectral API validation
stages:
- validate
validate_open-api:
stage: validate
image:
name: stoplight/spectral
entrypoint: [""]
script:
- spectral lint request-apispec.json -f junit -o api-report.xml
artifacts:
when: always
paths:
- api-report.xml
reports:
junit: api-report.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment