From 60c1caa7b01b74158072d9654707f83791087c98 Mon Sep 17 00:00:00 2001 From: Scott Clarke Date: Tue, 13 Aug 2024 10:55:53 +0100 Subject: [PATCH] Add workflow to perform linting on pull requests --- .github/workflows/pull-request.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/pull-request.yaml diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml new file mode 100644 index 0000000..073234e --- /dev/null +++ b/.github/workflows/pull-request.yaml @@ -0,0 +1,20 @@ +--- +name: Check ansible +on: + pull_request: + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.x' + - name: Install ansible-lint + run: pip3 install ansible-lint==24.7.* + - name: Install ansible docker collection + run: ansible-galaxy collection install 'community.docker<3.13' + - name: Run ansible-lint + run: ansible-lint .