-
Notifications
You must be signed in to change notification settings - Fork 34
41 lines (34 loc) · 1022 Bytes
/
lint.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
name: 'Lint'
on:
pull_request: {}
push: {}
jobs:
lint:
name: 'Lint'
runs-on: ubuntu-latest
container:
image: python:3.9-alpine
steps:
- name: 'Checkout'
uses: actions/checkout@v3
- name: Setup ansible
run: |
apk add --update --no-cache --virtual build_dependencies gcc musl-dev libffi-dev openssl-dev rust cargo
pip install --no-cache-dir ansible-core
ansible-galaxy collection install community.general
- name: 'Yamllint'
uses: karancode/yamllint-github-action@master
with:
yamllint_file_or_dir: 'roles'
yamllint_strict: false
yamllint_comment: false
- name: Checkout
uses: actions/checkout@v3
- name: "Ansible lint playbooks"
uses: ansible/[email protected]
with:
path: "playbooks/*"
- name: "Ansible lint roles"
uses: ansible/[email protected]
with:
path: "roles/*"