From 085e0bf6c8ee25be1d63bdeb2826e04dea97c17a Mon Sep 17 00:00:00 2001 From: Jonathan Wright Date: Wed, 29 May 2024 20:49:11 -0500 Subject: [PATCH] add ansible-lint to CI --- .github/workflows/ansible-lint.yml | 21 +++++++++++++++++++++ 1 file changed, 21 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..8a871d9 --- /dev/null +++ b/.github/workflows/ansible-lint.yml @@ -0,0 +1,21 @@ +# .github/workflows/ansible-lint.yml +name: ansible-lint +on: + pull_request: + branches: ["master"] + push: +jobs: + build: + name: Ansible Lint # Naming the build is important to use it as a status check + runs-on: ubuntu-latest + container: almalinux:9 + steps: + - uses: actions/checkout@v4 + - name: Install EPEL + run: dnf -y install epel-release + - name: Install dnf dependencies + run: dnf -y install ansible-core wget + - name: Install ansible-galaxy dependencies + run: ansible-galaxy install -r requirements.yml + - name: Run ansible-lint + uses: ansible/ansible-lint@v24.5.0 # or version tag instead of 'main'