From 8c2e3ba836af445c668d6d3e2574d15cfe56659b Mon Sep 17 00:00:00 2001 From: Cian Hatton Date: Tue, 30 Aug 2022 22:15:15 +0100 Subject: [PATCH] adding lint to ci --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 720051c..0f41f65 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,13 @@ env: jobs: lint: + strategy: + matrix: + directory: + - roles + - playbooks + - group_vars + - host_vars name: Test Ansible Playbooks runs-on: ubuntu-latest steps: @@ -22,7 +29,8 @@ jobs: - name: Install test dependencies. - name: Install requirements run: make deps - + - name: Test Directory + run: ansible-lint ${{ matrix.directory }} tests: name: Test Ansible Playbooks runs-on: ubuntu-latest