From e3d05320018b596e3f30e689b72ae66e9c19037b Mon Sep 17 00:00:00 2001 From: Bernd Finger Date: Fri, 5 Jan 2024 15:57:25 +0100 Subject: [PATCH] sap_install_media_detect: Add ansible-lint workflow Solves issue #575 for this role. Signed-off-by: Bernd Finger --- .../ansible-lint-sap_install_media_detect.yml | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/ansible-lint-sap_install_media_detect.yml diff --git a/.github/workflows/ansible-lint-sap_install_media_detect.yml b/.github/workflows/ansible-lint-sap_install_media_detect.yml new file mode 100644 index 000000000..e8cb49a8a --- /dev/null +++ b/.github/workflows/ansible-lint-sap_install_media_detect.yml @@ -0,0 +1,43 @@ +--- + +# Workflow for ansible-lint of a role + +name: ansible-lint of the role sap_install_media_detect + +on: + push: + branches: + - main + - dev + paths: + - 'roles/sap_install_media_detect/**' + pull_request: + branches: + - main + - dev + paths: + - 'roles/sap_install_media_detect/**' + +jobs: + ansible-lint: + runs-on: ubuntu-latest + + steps: + - name: Check out the code + uses: actions/checkout@main + + - name: Set up Python 3 + uses: actions/setup-python@main + with: + python-version: '3.9' + + - name: Install test dependencies + run: | + pip3 install ansible==7.5.0 + pip3 install ansible-compat==3.0.2 + pip3 install ansible-core==2.14.5 + pip3 install ansible-lint==6.8.6 + + - name: Run ansible-lint + working-directory: /home/runner/work/community.sap_install/community.sap_install/roles/sap_install_media_detect + run: ansible-lint