-
Notifications
You must be signed in to change notification settings - Fork 8
49 lines (39 loc) · 1.17 KB
/
ansible-lint-sap_vm_provision.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
# Workflow for ansible-lint of a role
name: ansible-lint of the role sap_vm_provision
on:
push:
branches:
- main
- dev
paths:
- 'roles/sap_vm_provision/**'
pull_request:
branches:
- main
- dev
paths:
- 'roles/sap_vm_provision/**'
workflow_dispatch:
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.10
pip3 install ansible-core==2.16.2
pip3 install ansible-lint==6.22.1
pip3 install jmespath==1.0.1
- name: Install dependencies for Ansible
run: ansible-galaxy collection install -r /home/runner/work/community.sap_infrastructure/community.sap_infrastructure/requirements.yml
- name: Run ansible-lint
working-directory: /home/runner/work/community.sap_infrastructure/community.sap_infrastructure/roles/sap_vm_provision
run: ansible-lint