Update .drone.yml
This commit is contained in:
parent
5a26d721a5
commit
3f4c2ae824
1 changed files with 27 additions and 5 deletions
32
.drone.yml
32
.drone.yml
|
@ -1,11 +1,33 @@
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: Lint on PR
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- pull_request
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: python3.8
|
||||||
image: geerlingguy/docker-ubuntu1804-ansible:testing
|
image: python:3.8-slim-bullseye
|
||||||
commands:
|
commands:
|
||||||
- "find . -maxdepth 1 -name '*.yml' | sort | grep -v '.drone.yml' | xargs ansible-playbook --syntax-check --list-tasks"
|
- "python3 --version"
|
||||||
- "find . -maxdepth 1 -name '*.yml' | sort | grep -v '.drone.yml' | xargs ansible-lint"
|
- "pip3 install yamllint"
|
||||||
|
- "yamllint --version"
|
||||||
|
- "yamllint ."
|
||||||
|
|
||||||
|
- name: python3.9
|
||||||
|
image: python:3.9-slim-bullseye
|
||||||
|
commands:
|
||||||
|
- "python3 --version"
|
||||||
|
- "pip3 install yamllint"
|
||||||
|
- "yamllint --version"
|
||||||
|
- "yamllint ."
|
||||||
|
|
||||||
|
- name: python3.10
|
||||||
|
image: python:3.10-slim-bullseye
|
||||||
|
commands:
|
||||||
|
- "python3 --version"
|
||||||
|
- "pip3 install yamllint"
|
||||||
|
- "yamllint --version"
|
||||||
|
- "yamllint ."
|
Reference in a new issue