Skip to content

Add support for interfaces with dashes #335

Add support for interfaces with dashes

Add support for interfaces with dashes #335

Workflow file for this run

name: Tests
# Controls when the action will run.
'on':
pull_request:
push:
branches:
- master
jobs:
integration:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ansible:
- "2.9"
- "2.10"
- "2.12"
steps:
# Checks-out the repository under $GITHUB_WORKSPACE, so it's accessible to the job
- uses: actions/checkout@v3
- name: Install dependencies
run: |
pipx uninstall ansible-core
python3 -m pip install --upgrade pip
ansible_version=${{ matrix.ansible }}
if [[ "${{ matrix.ansible }}" = "2.9" ]]; then
ansible_package=ansible
elif [[ "${{ matrix.ansible }}" = "2.10" ]]; then
ansible_package=ansible
ansible_version=3
else
ansible_package=ansible-core
fi
python3 -m pip install $ansible_package==$ansible_version.* docker git+https://github.com/stackhpc/ansible-modules-hashivault@stackhpc
ansible-galaxy collection build
ansible-galaxy collection install *.tar.gz
# TODO: Use ansible-test to run these.
- name: Running integration tests
run: |
ansible-playbook -i tests/inventory -v tests/*.yml -e ansible_python_interpreter=$(which python3)