From 3f4c2ae824e0a73a9faef11c0ae0722df9625358 Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Thu, 15 Feb 2024 00:02:55 +0000 Subject: [PATCH] Update .drone.yml --- .drone.yml | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2222699..e1cc6ed 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,11 +1,33 @@ --- kind: pipeline type: docker -name: default +name: Lint on PR + +trigger: + event: + - pull_request steps: - - name: test - image: geerlingguy/docker-ubuntu1804-ansible:testing + - name: python3.8 + image: python:3.8-slim-bullseye 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" \ No newline at end of file + - "python3 --version" + - "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 ." \ No newline at end of file