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/.forgejo/workflows/yamllint.yml
Renovate Bot cbae2054bf
Some checks failed
continuous-integration/drone/pr Build is failing
Lint on PR / Lint with Python 3.8 (pull_request) Failing after 8s
Lint on PR / Lint with Python 3.9 (pull_request) Failing after 2s
Lint on PR / Lint with Python 3.10 (pull_request) Failing after 2s
⬆️ Update actions/checkout action to v4
2024-05-27 23:35:02 +00:00

78 lines
2.4 KiB
YAML

name: Lint on PR
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
lint-python38:
name: Lint with Python 3.8
runs-on: docker
container:
image: docker.mafyuh.xyz/python:3.8-slim-bullseye
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python 3.8
run: |
python3 --version
- name: Install yamllint
run: |
pip3 install yamllint
- name: Show yamllint version
run: |
yamllint --version
- name: Lint .yml files
run: |
find . -name "*.yml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +
- name: Lint .yaml files
run: |
find . -name "*.yaml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +
lint-python39:
name: Lint with Python 3.9
runs-on: docker
container:
image: docker.mafyuh.xyz/python:3.9-slim-bullseye
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python 3.9
run: |
python3 --version
- name: Install yamllint
run: |
pip3 install yamllint
- name: Show yamllint version
run: |
yamllint --version
- name: Lint .yml files
run: |
find . -name "*.yml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +
- name: Lint .yaml files
run: |
find . -name "*.yaml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +
lint-python310:
name: Lint with Python 3.10
runs-on: docker
container:
image: docker.mafyuh.xyz/python:3.10-slim-bullseye
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python 3.10
run: |
python3 --version
- name: Install yamllint
run: |
pip3 install yamllint
- name: Show yamllint version
run: |
yamllint --version
- name: Lint .yml files
run: |
find . -name "*.yml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +
- name: Lint .yaml files
run: |
find . -name "*.yaml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +