-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #622 from berndfinger/issue-621-add-workflow-file-…
…to-main-branch fix(ansible-lint-sap_reusable_workflow): Add missing file to main branch
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |