From 7685a9008071debda8a2acd801f5ad6cf9a2e4bd Mon Sep 17 00:00:00 2001 From: jgoutin Date: Thu, 27 Apr 2023 12:13:39 +0200 Subject: [PATCH] Fix lint workflow trigger + Warn only for some Ansible-lint checks --- .ansible-lint | 2 ++ .github/workflows/lint.yml | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.ansible-lint b/.ansible-lint index ca01e8c..b841992 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -4,7 +4,9 @@ exclude_paths: - tests skip_list: - risky-file-permissions +warn_list: - experimental + - schema[meta] - name[template] - galaxy[no-changelog] - meta-runtime[unsupported-version] diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4238f30..5d931ce 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,6 +6,10 @@ on: paths: - "**.yml" - "**.py" + - ".ansible-lint" + - ".flake8" + - ".yamllint.yml" + - ".github/workflows/lint.yml" jobs: static-analysis: @@ -53,7 +57,7 @@ jobs: run: radon cc -n D . if: ${{ always() }} - - name: Python code maintenability + - name: Python code maintainability run: radon mi -n B . if: ${{ always() }}