From cfcf0c19e81386d8e8b9c2264d587f5d62148669 Mon Sep 17 00:00:00 2001 From: Ruairidh MacLeod Date: Tue, 21 Nov 2023 12:42:41 +0000 Subject: [PATCH] add ansible-lint action --- .github/workflows/ansible-lint.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/ansible-lint.yml diff --git a/.github/workflows/ansible-lint.yml b/.github/workflows/ansible-lint.yml new file mode 100644 index 0000000..f90597b --- /dev/null +++ b/.github/workflows/ansible-lint.yml @@ -0,0 +1,20 @@ +--- +name: ansible-lint + +on: + push: + pull_request: + workflow_dispatch: + schedule: + - cron: "0 6 * * *" + +jobs: + ansible_lint: + runs-on: ubuntu-22.04 + steps: + - name: checkout + uses: actions/checkout@v4 + - name: install pre-commit + run: python3.10 install --user pre-commit + - name: run ansible-lint + run: pre-commit run ansible-lint --all-files