EvoBSD/.drone.yml
Patrick Marchand f8d6a0be86
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
add a yaml linting step to the ci
catches problems in the drone ci file as well
2020-06-04 11:41:49 -04:00

17 lines
459 B
YAML

---
kind: pipeline
type: docker
name: default
steps:
- name: lint yaml files
image: pipelinecomponents/yamllint:latest
commands:
- "yamllint ."
- name: lint ansible scripts
image: pipelinecomponents/ansible-lint:latest
commands:
- "find . -maxdepth 1 -name '*.yml' | sort | grep -v '.drone.yml' | xargs ansible-playbook --syntax-check --list-tasks"
- "find . -maxdepth 1 -name '*.yml' | sort | grep -v '.drone.yml' | xargs ansible-lint"