Skip to content

[CI]: Switch to testing two latest ansible-core versions #336

[CI]: Switch to testing two latest ansible-core versions

[CI]: Switch to testing two latest ansible-core versions #336

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.16"
- "2.17

Check failure on line 18 in .github/workflows/pull_request.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pull_request.yml

Invalid workflow file

You have an error in your yaml syntax on line 18
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 }}
python3 -m pip install ansible-core==$ansible_version.* docker ansible-modules-hashivault
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)