Created
April 26, 2021 14:35
-
-
Save mcroissant/a159f9e3e32f13b720d3617877331e23 to your computer and use it in GitHub Desktop.
Gitlab CI for spectral API validation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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