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

35 lines
1.4 KiB
YAML
Raw Normal View History

2024-02-28 21:53:17 -05:00
kind: pipeline
type: docker
name: Lint on PR
trigger:
event:
- pull_request
steps:
2024-02-28 22:26:29 -05:00
- name: python3.8
2024-04-26 21:34:49 -04:00
image: docker.mafyuh.xyz/python:3.8-slim-bullseye
2024-02-28 21:53:17 -05:00
commands:
2024-02-28 22:26:29 -05:00
- "python3 --version"
2024-02-28 21:53:17 -05:00
- "pip3 install yamllint"
- "yamllint --version"
2024-04-16 23:33:13 -04:00
- '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}}}" {} +'
2024-02-28 21:53:17 -05:00
2024-04-16 23:33:13 -04:00
- name: python3.10
2024-04-26 21:34:49 -04:00
image: docker.mafyuh.xyz/python:3.9-slim-bullseye
2024-02-28 21:53:17 -05:00
commands:
- "python3 --version"
- "pip3 install yamllint"
- "yamllint --version"
2024-02-29 04:17:49 -05:00
- '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}}}" {} +'
2024-02-28 21:53:17 -05:00
2024-04-16 23:33:13 -04:00
- name: python3.12
2024-04-26 21:34:49 -04:00
image: docker.mafyuh.xyz/python:3.10-slim-bullseye
2024-02-28 21:53:17 -05:00
commands:
- "python3 --version"
- "pip3 install yamllint"
- "yamllint --version"
2024-02-29 04:17:49 -05:00
- 'find . -name "*.yml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +'
2024-03-01 10:36:50 -05:00
- 'find . -name "*.yaml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +'