mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
Now validating JSON files in Gitlab pipeline
This commit is contained in:
parent
41f1b7f3a7
commit
60cf2472b6
1 changed files with 11 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue