lint: ansible-lint suggested updates
This commit is contained in:
parent
2ba6c6691b
commit
1d5d39d1c2
20 changed files with 140 additions and 56 deletions
41
.forgejo/workflows/ansible-lint.yml
Normal file
41
.forgejo/workflows/ansible-lint.yml
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
---
|
||||
name: Ansible Lint Check
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, develop]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: docker
|
||||
|
||||
container:
|
||||
image: ghcr.io/catthehacker/ubuntu:runner-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Create a virtual environment
|
||||
run: |
|
||||
python -m venv venv
|
||||
|
||||
- name: Install Ansible and ansible-dev-tools
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
pip install --upgrade pip
|
||||
pip install ansible ansible-dev-tools
|
||||
shell: bash
|
||||
|
||||
- name: Run ansible-lint
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
ansible-lint
|
||||
shell: bash
|
||||
Loading…
Add table
Add a link
Reference in a new issue