mirror of
https://github.com/kubevirt/kubevirt.core.git
synced 2026-03-26 19:03:16 +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:
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
# .ansible-lint
|
# .ansible-lint
|
||||||
exclude_paths:
|
exclude_paths:
|
||||||
- .github/
|
- .github/
|
||||||
|
|||||||
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@@ -39,7 +39,12 @@ jobs:
|
|||||||
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
|
||||||
|
|
||||||
- name: Run linter
|
- name: Run yamllint
|
||||||
|
run: |
|
||||||
|
yamllint .
|
||||||
|
working-directory: ${{ env.collection_dir }}
|
||||||
|
|
||||||
|
- name: Run ansible-lint
|
||||||
run: |
|
run: |
|
||||||
ansible-lint --version
|
ansible-lint --version
|
||||||
ansible-lint -v
|
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
|
- name: Install kubevirt.core collection
|
||||||
id: install
|
id: install
|
||||||
if: inputs.ansible_test_targets != ''
|
if: inputs.ansible_test_targets != ''
|
||||||
# yamllint disable-line rule:line-length
|
|
||||||
uses: ansible-network/github_actions/.github/actions/build_install_collection@main
|
uses: ansible-network/github_actions/.github/actions/build_install_collection@main
|
||||||
with:
|
with:
|
||||||
install_python_dependencies: true
|
install_python_dependencies: true
|
||||||
@@ -124,7 +123,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Run integration tests
|
- name: Run integration tests
|
||||||
if: inputs.ansible_test_targets != ''
|
if: inputs.ansible_test_targets != ''
|
||||||
# yamllint disable-line rule:line-length
|
|
||||||
uses: ansible-network/github_actions/.github/actions/ansible_test_integration@main
|
uses: ansible-network/github_actions/.github/actions/ansible_test_integration@main
|
||||||
with:
|
with:
|
||||||
collection_path: ${{ steps.install.outputs.collection_path }}
|
collection_path: ${{ steps.install.outputs.collection_path }}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
ancestor: 1.0.0
|
ancestor: 1.0.0
|
||||||
releases:
|
releases:
|
||||||
1.0.0:
|
1.0.0:
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
changelog_filename_template: ../CHANGELOG.rst
|
changelog_filename_template: ../CHANGELOG.rst
|
||||||
changelog_filename_version_depth: 0
|
changelog_filename_version_depth: 0
|
||||||
changes_file: changelog.yaml
|
changes_file: changelog.yaml
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
plugin: kubevirt.core.kubevirt
|
plugin: kubevirt.core.kubevirt
|
||||||
connections:
|
connections:
|
||||||
- namespaces:
|
- namespaces:
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
plugin: kubevirt.core.kubevirt
|
plugin: kubevirt.core.kubevirt
|
||||||
connections:
|
connections:
|
||||||
- namespaces:
|
- namespaces:
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
- name: Playbook creating a virtual machine with data volume
|
- name: Playbook creating a virtual machine with data volume
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
tasks:
|
tasks:
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
- name: Playbook instantiating a virtual machine
|
- name: Playbook instantiating a virtual machine
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
tasks:
|
tasks:
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
- name: Playbook creating a virtual machine with multus network
|
- name: Playbook creating a virtual machine with multus network
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
tasks:
|
tasks:
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
- name: Playbook terminating a virtual machine with data volume
|
- name: Playbook terminating a virtual machine with data volume
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
tasks:
|
tasks:
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
- name: Playbook terminating a virtual machine
|
- name: Playbook terminating a virtual machine
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
tasks:
|
tasks:
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
- name: Playbook describing a virtual machine
|
- name: Playbook describing a virtual machine
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
tasks:
|
tasks:
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
- name: Playbook describing a virtual machine
|
- name: Playbook describing a virtual machine
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
tasks:
|
tasks:
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
plugin: kubevirt.core.kubevirt
|
plugin: kubevirt.core.kubevirt
|
||||||
connections:
|
connections:
|
||||||
- namespaces:
|
- namespaces:
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
namespace: kubevirt
|
namespace: kubevirt
|
||||||
name: core
|
name: core
|
||||||
version: "1.1.0"
|
version: "1.1.0"
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ EXAMPLES = """
|
|||||||
api_key: xxxxxxxxxxxxxxxx
|
api_key: xxxxxxxxxxxxxxxx
|
||||||
validate_certs: false
|
validate_certs: false
|
||||||
|
|
||||||
- name: Use default ~/.kube/config and return VirtualMachineInstances from namespace testing with interfaces connected to network bridge-network
|
- name: Use default ~/.kube/config and return VirtualMachineInstances from namespace testing connected to network bridge-network
|
||||||
plugin: kubevirt.core.kubevirt
|
plugin: kubevirt.core.kubevirt
|
||||||
connections:
|
connections:
|
||||||
- namespaces:
|
- namespaces:
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
collections:
|
collections:
|
||||||
- name: kubernetes.core
|
- name: kubernetes.core
|
||||||
version: '>=2.0.0'
|
version: '>=2.0.0'
|
||||||
|
|||||||
@@ -1,2 +1,3 @@
|
|||||||
|
---
|
||||||
modules:
|
modules:
|
||||||
python_requires: ">=3.11.0,<3.12.0"
|
python_requires: ">=3.11.0,<3.12.0"
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
- name: Create VM
|
- name: Create VM
|
||||||
connection: local
|
connection: local
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
plugin: kubevirt.core.kubevirt
|
plugin: kubevirt.core.kubevirt
|
||||||
connections:
|
connections:
|
||||||
- namespaces:
|
- namespaces:
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
plugin: kubevirt.core.kubevirt
|
plugin: kubevirt.core.kubevirt
|
||||||
connections:
|
connections:
|
||||||
- namespaces:
|
- namespaces:
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
plugin: kubevirt.core.kubevirt
|
plugin: kubevirt.core.kubevirt
|
||||||
connections:
|
connections:
|
||||||
- namespaces:
|
- namespaces:
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
plugin: kubevirt.core.kubevirt
|
plugin: kubevirt.core.kubevirt
|
||||||
connections:
|
connections:
|
||||||
- namespaces:
|
- namespaces:
|
||||||
|
|||||||
Reference in New Issue
Block a user