mirror of
https://github.com/kubevirt/kubevirt.core.git
synced 2026-05-08 14:22:38 +00:00
Merge pull request #46 from 0xFelix/add-shellcheck
ci: Run shellcheck in CI linter job
This commit is contained in:
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@@ -34,10 +34,11 @@ jobs:
|
|||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
cache: pip
|
cache: pip
|
||||||
|
|
||||||
- name: Install yamllint, ansible
|
- name: Install yamllint, ansible, shellcheck
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install yamllint ansible-core ansible-lint
|
pip install yamllint ansible-core ansible-lint
|
||||||
|
sudo apt install -y shellcheck
|
||||||
|
|
||||||
- name: Run yamllint
|
- name: Run yamllint
|
||||||
run: |
|
run: |
|
||||||
@@ -50,6 +51,11 @@ jobs:
|
|||||||
ansible-lint -v
|
ansible-lint -v
|
||||||
working-directory: ${{ env.collection_dir }}
|
working-directory: ${{ env.collection_dir }}
|
||||||
|
|
||||||
|
- name: Run shellcheck
|
||||||
|
run: |
|
||||||
|
find . -type f -iname '*.sh' -exec shellcheck {} \;
|
||||||
|
working-directory: ${{ env.collection_dir }}
|
||||||
|
|
||||||
sanity:
|
sanity:
|
||||||
uses: ansible-network/github_actions/.github/workflows/sanity.yml@main
|
uses: ansible-network/github_actions/.github/workflows/sanity.yml@main
|
||||||
needs:
|
needs:
|
||||||
|
|||||||
Reference in New Issue
Block a user