mirror of
https://github.com/hassio-addons/repository-edge.git
synced 2025-05-03 18:51:32 +00:00
45 lines
756 B
YAML
45 lines
756 B
YAML
---
|
|
image: docker:stable
|
|
|
|
stages:
|
|
- linting
|
|
|
|
.linting: &linting
|
|
stage: linting
|
|
|
|
yamllint:
|
|
<<: *linting
|
|
image: sdesbure/yamllint
|
|
before_script:
|
|
- yamllint --version
|
|
script:
|
|
- yamllint .
|
|
|
|
jsonlint:
|
|
<<: *linting
|
|
image: sahsu/docker-jsonlint
|
|
before_script:
|
|
- jsonlint --version || true
|
|
script:
|
|
- |
|
|
for file in $(find . -type f -name "*.json"); do
|
|
if ! jsonlint -q $file; then
|
|
export FAILED=1
|
|
else
|
|
echo "$file OK"
|
|
fi
|
|
done
|
|
if [ "${FAILED}" = "1" ]; then
|
|
exit 1
|
|
fi
|
|
|
|
markdownlint:
|
|
<<: *linting
|
|
image:
|
|
name: ruby:alpine
|
|
entrypoint: [""]
|
|
before_script:
|
|
- gem install mdl
|
|
- mdl --version
|
|
script:
|
|
- mdl --style all --warnings .
|