Merge pull request #46 from 0xFelix/add-shellcheck

ci: Run shellcheck in CI linter job
This commit is contained in:
kubevirt-bot
2024-02-29 16:10:57 +01:00
committed by GitHub

View File

@@ -34,10 +34,11 @@ jobs:
python-version: 3.x
cache: pip
- name: Install yamllint, ansible
- name: Install yamllint, ansible, shellcheck
run: |
python -m pip install --upgrade pip
pip install yamllint ansible-core ansible-lint
sudo apt install -y shellcheck
- name: Run yamllint
run: |
@@ -50,6 +51,11 @@ jobs:
ansible-lint -v
working-directory: ${{ env.collection_dir }}
- name: Run shellcheck
run: |
find . -type f -iname '*.sh' -exec shellcheck {} \;
working-directory: ${{ env.collection_dir }}
sanity:
uses: ansible-network/github_actions/.github/workflows/sanity.yml@main
needs: