Skip to content
Snippets Groups Projects
Verified Commit a73c6ee3 authored by Martin Weise's avatar Martin Weise
Browse files

Added Swagger version lint

parent 49c41d42
No related branches found
No related tags found
2 merge requests!374Bumped version of DBRepo,!373Bumped version of DBRepo
...@@ -49,7 +49,6 @@ lint-docker-compose: ...@@ -49,7 +49,6 @@ lint-docker-compose:
before_script: before_script:
- 'apk --no-cache add bash wget' - 'apk --no-cache add bash wget'
- 'wget https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY} -O /usr/bin/yq && chmod +x /usr/bin/yq' - 'wget https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY} -O /usr/bin/yq && chmod +x /usr/bin/yq'
- 'ls -la .scripts'
script: script:
- "bash .scripts/check-compose.sh" - "bash .scripts/check-compose.sh"
- "yq compare -P docker-compose.yml .docker/docker-compose.yml 'volumes.*'" - "yq compare -P docker-compose.yml .docker/docker-compose.yml 'volumes.*'"
...@@ -117,6 +116,19 @@ lint-metadata-schema: ...@@ -117,6 +116,19 @@ lint-metadata-schema:
script: script:
- diff dbrepo-metadata-db/1_setup-schema.sql helm/dbrepo/files/01-setup-schema.sql - diff dbrepo-metadata-db/1_setup-schema.sql helm/dbrepo/files/01-setup-schema.sql
lint-swagger-version:
image: docker.io/alpine:${ALPINE_VERSION}
stage: lint
variables:
VERSION: 3.3.0
BINARY: yq_linux_amd64
before_script:
- 'apk --no-cache add bash wget'
- 'wget https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY} -O /usr/bin/yq && chmod +x /usr/bin/yq'
script:
- cat ./.docs/.swagger/api.base.yaml | yq .externalDocs.url | grep "${DOC_VERSION}"
- cat ./.docs/.swagger/api.base.yaml | yq .info.version | grep "${APP_VERSION}"
build-metadata-service: build-metadata-service:
image: maven:3-openjdk-${JAVA_VERSION} image: maven:3-openjdk-${JAVA_VERSION}
stage: build stage: build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment