-
Notifications
You must be signed in to change notification settings - Fork 61
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 #576 from berndfinger/issue-575-sap_maintain_etc_h…
…osts sap_maintain_etc_hosts: Add ansible-lint workflow
- Loading branch information
Showing
1 changed file
with
43 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,43 @@ | ||
--- | ||
|
||
# Workflow for ansible-lint of a role | ||
|
||
name: ansible-lint of the role sap_maintain_etc_hosts | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
paths: | ||
- 'roles/sap_maintain_etc_hosts/**' | ||
pull_request: | ||
branches: | ||
- main | ||
- dev | ||
paths: | ||
- 'roles/sap_maintain_etc_hosts/**' | ||
|
||
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_maintain_etc_hosts | ||
run: ansible-lint |