Compare commits
No commits in common. "81cbde7c60226689e9145ee44e9ad45b1097f562" and "ba4d28870eeefe312ed3770f6dfb6d910e7296e4" have entirely different histories.
81cbde7c60
...
ba4d28870e
1 changed files with 35 additions and 0 deletions
35
.drone.yml
Normal file
35
.drone.yml
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: Lint on PR
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: python3.8
|
||||||
|
image: docker.mafyuh.xyz/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: docker.mafyuh.xyz/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: docker.mafyuh.xyz/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}}}" {} +'
|
Reference in a new issue