mirror of
https://github.com/kubevirt/kubevirt.core.git
synced 2026-03-27 03:13:10 +00:00
ci: Add yamllint to CI linter job
This adds yamllint to the CI linter job and sets the maximum line length to 140 like in kubevirt/kubevirt. Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
This commit is contained in:
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@@ -39,7 +39,12 @@ jobs:
|
||||
python -m pip install --upgrade pip
|
||||
pip install yamllint ansible-core ansible-lint
|
||||
|
||||
- name: Run linter
|
||||
- name: Run yamllint
|
||||
run: |
|
||||
yamllint .
|
||||
working-directory: ${{ env.collection_dir }}
|
||||
|
||||
- name: Run ansible-lint
|
||||
run: |
|
||||
ansible-lint --version
|
||||
ansible-lint -v
|
||||
|
||||
2
.github/workflows/integration.yml
vendored
2
.github/workflows/integration.yml
vendored
@@ -92,7 +92,6 @@ jobs:
|
||||
- name: Install kubevirt.core collection
|
||||
id: install
|
||||
if: inputs.ansible_test_targets != ''
|
||||
# yamllint disable-line rule:line-length
|
||||
uses: ansible-network/github_actions/.github/actions/build_install_collection@main
|
||||
with:
|
||||
install_python_dependencies: true
|
||||
@@ -124,7 +123,6 @@ jobs:
|
||||
|
||||
- name: Run integration tests
|
||||
if: inputs.ansible_test_targets != ''
|
||||
# yamllint disable-line rule:line-length
|
||||
uses: ansible-network/github_actions/.github/actions/ansible_test_integration@main
|
||||
with:
|
||||
collection_path: ${{ steps.install.outputs.collection_path }}
|
||||
|
||||
Reference in New Issue
Block a user