Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Bump action molecule #706

Merged
merged 14 commits into from
Aug 12, 2024
10 changes: 7 additions & 3 deletions .github/workflows/pull-request-management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ jobs:
strategy:
fail-fast: true
matrix:
ansible_version: ['ansible-core==2.11.3', 'ansible-core>=2.11.3']
# ansible_version: ['ansible-core==2.11.3', 'ansible-core>=2.11.3']
ansible_version:
- 'ansible-core>=2.15.0,<2.18.0 --upgrade'
avd_scenario:
- cv_configlet_loose
- cv_configlet_strict
Expand All @@ -177,12 +179,13 @@ jobs:
echo "ANSIBLE_FORCE_COLOR=1" >> $GITHUB_ENV
- uses: actions/checkout@v3
- name: Run molecule action
uses: arista-netdevops-community/[email protected]
uses: arista-netdevops-community/action-molecule-avd@v1.8.1
with:
molecule_parentdir: 'ansible_collections/arista/cvp'
molecule_command: 'test'
molecule_args: '--scenario-name ${{ matrix.avd_scenario }}'
pip_file: ansible_collections/arista/cvp/requirements.txt
galaxy_file: "ansible_collections/arista/cvp/collections.yml"
ansible: "${{ matrix.ansible_version }}"
check_git: true
check_git_enforced: false
Expand Down Expand Up @@ -213,12 +216,13 @@ jobs:
echo "ANSIBLE_FORCE_COLOR=1" >> $GITHUB_ENV
- uses: actions/checkout@v3
- name: Run molecule action
uses: arista-netdevops-community/[email protected]
uses: arista-netdevops-community/action-molecule-avd@v1.8.1
with:
molecule_parentdir: 'ansible_collections/arista/cvp'
molecule_command: 'test'
molecule_args: '--scenario-name ${{ matrix.avd_scenario }}'
pip_file: ansible_collections/arista/cvp/requirements.txt
galaxy_file: "ansible_collections/arista/cvp/collections.yml"
ansible: "${{ matrix.ansible_version }}"
check_git: true
check_git_enforced: false
Expand Down
7 changes: 7 additions & 0 deletions ansible_collections/arista/cvp/collections.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# collection requirements leveraged by molecule
collections:
- arista.eos
- ansible.netcommon
- community.general
- community.docker
- ansible.posix
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,3 @@ provisioner:
- --inventory=inventory/hosts
verifier:
name: ansible
inventory:
links:
hosts: 'inventory/hosts'
group_vars: 'inventory/group_vars/'
host_vars: 'inventory/host_vars/'
ansible_args:
- --inventory=inventory/hosts
config_options:
defaults:
jinja2_extensions: 'jinja2.ext.loopcontrols,jinja2.ext.do,jinja2.ext.i18n'
gathering: explicit
command_warnings: False
Loading