Implement ansible-lint workflow
This commit is contained in:
parent
9ca4e0f8e3
commit
7cc5ef1d3d
@ -5,6 +5,11 @@ jobs:
|
|||||||
lint-ansible-files:
|
lint-ansible-files:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- run: echo "it works!"
|
- run: apt-get update
|
||||||
|
- run: apt-get install -y python3 python3-pip python3-venv
|
||||||
|
- run: python3 --version
|
||||||
- name: Check out repo
|
- name: Check out repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
- run: python3 -m venv venv
|
||||||
|
- run: venv/bin/pip --disable-pip-version-check install ansible==7.2.0 ansible-lint==6.16.1 > /dev/null 2> /dev/null
|
||||||
|
- run: venv/bin/ansible-lint -c .ansible-lint ansible
|
||||||
|
Loading…
x
Reference in New Issue
Block a user