Skip to content

Commit

Permalink
fix(ansible-lint-sap_reusable_workflow): Add missing file to main branch
Browse files Browse the repository at this point in the history
Relates to: #621.

Signed-off-by: Bernd Finger <[email protected]>
  • Loading branch information
berndfinger committed Jan 25, 2024
1 parent a7c348d commit 4977535
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ansible-lint-sap_reusable_workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---

# Workflow for ansible-lint of a role

name: ansible-lint reusable workflow for role

on:
workflow_call:
inputs:
role:
required: true
type: string

jobs:
ansible-lint:
runs-on: ubuntu-latest

steps:
- name: Check out the code
uses: actions/checkout@v4

- name: Set up Python 3
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install test dependencies
run: |
pip3 install ansible==9.1.0
pip3 install ansible-compat==4.1.11
pip3 install ansible-core==2.16.2
pip3 install ansible-lint==6.22.2
- name: Run ansible-lint
working-directory: /home/runner/work/community.sap_install/community.sap_install/roles/${{ inputs.role }}
run: ansible-lint

0 comments on commit 4977535

Please sign in to comment.