1
1
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_gitea.git synced 2024-08-16 11:39:50 +02:00

improve yamllinting

This commit is contained in:
L3D 2021-03-21 00:08:32 +01:00
parent bb6ae52acd
commit 2eaccfe2a8
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 28 additions and 6 deletions

24
.github/workflows/yamllint.yaml vendored Normal file
View file

@ -0,0 +1,24 @@
---
name: 'Yamllint GitHub Actions'
# yamllint disable-line rule:truthy
on:
push:
branches: '*'
pull_request:
branches: '*'
schedule:
- cron: '23 6 * */1 *'
jobs:
yamllint:
name: 'Yamllint'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@master
- name: 'Yamllint'
uses: karancode/yamllint-github-action@master
with:
yamllint_file_or_dir: '.'
yamllint_config_filepath: './.yamllint'

2
.gitignore vendored
View file

@ -1,5 +1,7 @@
*.pyc
.cache
# Environments
.env
.venv

View file

@ -2,11 +2,7 @@
extends: default
rules:
# 150 chars should be enough, but don't fail if a line is longer
line-length:
max: 100
max: 150
level: warning
ignore: |
/venv/
/env/
/molecule/