Skip to content

Commit

Permalink
added modules & docs
Browse files Browse the repository at this point in the history
  • Loading branch information
NiceRath committed Aug 30, 2023
1 parent 17835a5 commit 6075ae9
Show file tree
Hide file tree
Showing 20 changed files with 2,229 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .ansible-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---

skip_list:
- var-naming
- ignore-errors
- galaxy[no-changelog]
50 changes: 50 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---

name: Lint

on:

Check warning on line 5 in .github/workflows/lint.yml

View workflow job for this annotation

GitHub Actions / build (3.1)

5:1 [truthy] truthy value should be one of [False, True, false, no, true, yes]
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
strategy:
matrix:
python-version: [3.10]
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}

- name: Install python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install dependencies
run: |
pip install -r requirements_lint.txt
shell: bash

- name: Running PyLint
run: pylint --recursive=y .
shell: bash

- name: Running YamlLint
run: yamllint .
shell: bash

- name: Preparing collection for AnsibleLint
run: |
mkdir -p /tmp/ansible_lint/collections/ansible_collections/ansibleguy
ln -s ${{ github.workspace }} /tmp/ansible_lint/collections/ansible_collections/ansibleguy/opnsense
shell: bash

- name: Running AnsibleLint
run: ANSIBLE_COLLECTIONS_PATH=/tmp/ansible_lint/collections ansible-lint -c .ansible-lint.yml
shell: bash
Loading

0 comments on commit 6075ae9

Please sign in to comment.