Skip to content

Commit

Permalink
Merge pull request #622 from berndfinger/issue-621-add-workflow-file-…
Browse files Browse the repository at this point in the history
…to-main-branch

fix(ansible-lint-sap_reusable_workflow): Add missing file to main branch
  • Loading branch information
ja9fuchs authored Jan 25, 2024
2 parents a7c348d + 4977535 commit 3a0f42b
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 3a0f42b

Please sign in to comment.