Now validating JSON files in Gitlab pipeline
This commit is contained in:
@@ -9,6 +9,9 @@ variables:
|
||||
# This template uses jdk8 for verifying and deploying images
|
||||
image: maven:3-openjdk-11
|
||||
|
||||
before_script:
|
||||
- apt-get update -qq && apt-get install -qq -y --no-install-recommends jq
|
||||
|
||||
# Cache downloaded dependencies and plugins between builds.
|
||||
# To keep cache across branches add 'key: "$CI_JOB_NAME"'
|
||||
cache:
|
||||
@@ -23,3 +26,11 @@ verify:jdk11:
|
||||
except:
|
||||
variables:
|
||||
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||
|
||||
test:json:
|
||||
stage: test
|
||||
script:
|
||||
- 'find . -name \*.json -type f -print0 | xargs -0 -n1 -P8 jq empty'
|
||||
except:
|
||||
variables:
|
||||
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||
|
||||
Reference in New Issue
Block a user