Skip to content

Commit

Permalink
sap_install_media_detect: Add ansible-lint workflow
Browse files Browse the repository at this point in the history
Solves issue sap-linuxlab#575 for this role.

Signed-off-by: Bernd Finger <[email protected]>
  • Loading branch information
berndfinger committed Jan 5, 2024
1 parent d1ff71a commit 127d35d
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ansible-lint-sap_install_media_detect.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 127d35d

Please sign in to comment.