diff --git a/.github/workflows/yamllint.yaml b/.github/workflows/yamllint.yaml new file mode 100644 index 0000000..ddb5b89 --- /dev/null +++ b/.github/workflows/yamllint.yaml @@ -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' diff --git a/.gitignore b/.gitignore index 64b554e..e4c3671 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ *.pyc +.cache + # Environments .env .venv diff --git a/.yamllint b/.yamllint index 16fff78..cb32cb1 100644 --- a/.yamllint +++ b/.yamllint @@ -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/