Skip to content

Commit 6075ae9

Browse files
committed
added modules & docs
1 parent 17835a5 commit 6075ae9

20 files changed

+2229
-0
lines changed

.ansible-lint.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
3+
skip_list:
4+
- var-naming
5+
- ignore-errors
6+
- galaxy[no-changelog]

.github/workflows/lint.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
3+
name: Lint
4+
5+
on:
6+
push:
7+
branches: [main]
8+
pull_request:
9+
branches: [main]
10+
11+
jobs:
12+
build:
13+
strategy:
14+
matrix:
15+
python-version: [3.10]
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v3
21+
with:
22+
ref: ${{ github.ref }}
23+
24+
- name: Install python
25+
uses: actions/setup-python@v4
26+
with:
27+
python-version: '3.10'
28+
29+
- name: Install dependencies
30+
run: |
31+
pip install -r requirements_lint.txt
32+
shell: bash
33+
34+
- name: Running PyLint
35+
run: pylint --recursive=y .
36+
shell: bash
37+
38+
- name: Running YamlLint
39+
run: yamllint .
40+
shell: bash
41+
42+
- name: Preparing collection for AnsibleLint
43+
run: |
44+
mkdir -p /tmp/ansible_lint/collections/ansible_collections/ansibleguy
45+
ln -s ${{ github.workspace }} /tmp/ansible_lint/collections/ansible_collections/ansibleguy/opnsense
46+
shell: bash
47+
48+
- name: Running AnsibleLint
49+
run: ANSIBLE_COLLECTIONS_PATH=/tmp/ansible_lint/collections ansible-lint -c .ansible-lint.yml
50+
shell: bash

0 commit comments

Comments
 (0)