Ajouter 'ansible-lint.yml'
This commit is contained in:
parent
0f9ee83c73
commit
cab80a3212
18
ansible-lint.yml
Normal file
18
ansible-lint.yml
Normal file
@ -0,0 +1,18 @@
|
||||
name: Ansible-lint
|
||||
on: [push]
|
||||
jobs:
|
||||
ansible-lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
- name: Set up Python 3.11
|
||||
run: |
|
||||
apt update
|
||||
apt install -y python3 python3-pip
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python3 -m pip install --upgrade pip
|
||||
pip install ansible-lint
|
||||
- name: Analysing the code with ansible-lint
|
||||
run: find . -type f -name "*.yml" | ansible-lint
|
Loading…
x
Reference in New Issue
Block a user