From ca97fa520fcb9bf105c24ee355cc95a1c7cd7e2b Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Thu, 29 Feb 2024 09:17:49 +0000 Subject: [PATCH] Update .drone.yml --- .drone.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index f007f28..913d3e5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,4 +1,3 @@ ---- kind: pipeline type: docker name: Lint on PR @@ -14,7 +13,8 @@ steps: - "python3 --version" - "pip3 install yamllint" - "yamllint --version" - - 'yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" .' + - 'find . -name "*.yml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +' + - 'find . -name "*.yaml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +' - name: python3.9 image: python:3.9-slim-bullseye @@ -22,7 +22,8 @@ steps: - "python3 --version" - "pip3 install yamllint" - "yamllint --version" - - 'yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" .' + - 'find . -name "*.yml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +' + - 'find . -name "*.yaml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +' - name: python3.10 image: python:3.10-slim-bullseye @@ -30,4 +31,5 @@ steps: - "python3 --version" - "pip3 install yamllint" - "yamllint --version" - - 'yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" .' \ No newline at end of file + - 'find . -name "*.yml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +' + - 'find . -name "*.yaml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +'