This repository has been archived on 2024-07-30. You can view files and clone it, but cannot push or open issues or pull requests.
Auto-Homelab/.drone.yml
2024-04-17 03:33:13 +00:00

35 lines
No EOL
1.3 KiB
YAML

kind: pipeline
type: docker
name: Lint on PR
trigger:
event:
- pull_request
steps:
- name: python3.8
image: python:3.8-slim-bullseye
commands:
- "python3 --version"
- "pip3 install yamllint"
- "yamllint --version"
- '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.9-slim-bullseye
commands:
- "python3 --version"
- "pip3 install yamllint"
- "yamllint --version"
- '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.12
image: python:3.10-slim-bullseye
commands:
- "python3 --version"
- "pip3 install yamllint"
- "yamllint --version"
- '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}}}" {} +'