Updated to use command module instead of shell #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Ansible Lint | |
'on': | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
env: | |
PYTHON_VERSION: "3.12" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- run: | | |
python3 -m pip install pip | |
pip3 install yamllint | |
- run: yamllint . | |
- run: pip3 install ansible ansible-lint | |
- run: ansible-lint . |