Skip to content

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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 5 additions & 12 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Tests

# Controls when the action will run.
@@ -14,9 +15,8 @@ jobs:
fail-fast: false
matrix:
ansible:
- "2.9"
- "2.10"
- "2.12"
- "2.16"
- "2.17"
steps:
# Checks-out the repository under $GITHUB_WORKSPACE, so it's accessible to the job
- uses: actions/checkout@v3
@@ -26,15 +26,8 @@ jobs:
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
python3 -m pip install ansible-core==$ansible_version.* docker ansible-modules-hashivault
ansible-galaxy collection install -r core-requirements.yml
ansible-galaxy collection build
ansible-galaxy collection install *.tar.gz

8 changes: 8 additions & 0 deletions core-requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
collections:
- name: ansible.posix
source: https://galaxy.ansible.com
version: <2
- name: community.general
source: https://galaxy.ansible.com
version: <7
Loading