Update .drone.yml

This commit is contained in:
Matt Reeves 2024-02-29 09:17:49 +00:00
parent 63680bce5f
commit ca97fa520f

View file

@ -1,4 +1,3 @@
---
kind: pipeline kind: pipeline
type: docker type: docker
name: Lint on PR name: Lint on PR
@ -14,7 +13,8 @@ steps:
- "python3 --version" - "python3 --version"
- "pip3 install yamllint" - "pip3 install yamllint"
- "yamllint --version" - "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 - name: python3.9
image: python:3.9-slim-bullseye image: python:3.9-slim-bullseye
@ -22,7 +22,8 @@ steps:
- "python3 --version" - "python3 --version"
- "pip3 install yamllint" - "pip3 install yamllint"
- "yamllint --version" - "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 - name: python3.10
image: python:3.10-slim-bullseye image: python:3.10-slim-bullseye
@ -30,4 +31,5 @@ steps:
- "python3 --version" - "python3 --version"
- "pip3 install yamllint" - "pip3 install yamllint"
- "yamllint --version" - "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}}}" {} +'