From 91ca6ee65668e86fec462d52f681b0f60504532b Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Tue, 23 May 2023 16:18:19 +0100 Subject: [PATCH] Enable ansible-lint testing pipeline - includes ansible-lint github action - include dependabot config to enable update of action versions once a month --- .github/dependabot.yml | 9 +++++++++ .github/workflows/ansible-lint.yml | 12 ++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/ansible-lint.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..993a84a6 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,9 @@ +--- +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: monthly + labels: + - "skip-changelog" diff --git a/.github/workflows/ansible-lint.yml b/.github/workflows/ansible-lint.yml new file mode 100644 index 00000000..c302fe9c --- /dev/null +++ b/.github/workflows/ansible-lint.yml @@ -0,0 +1,12 @@ +# .github/workflows/ansible-lint.yml +name: ansible-lint +on: + pull_request: + branches: ["main", "stable-*"] +jobs: + build: + name: Ansible Lint # Naming the build is important to use it as a status check + runs-on: ubuntu-latest + steps: + - name: Run ansible-lint + uses: ansible/ansible-lint@v6.16.2