Skip to content

Commit 459ccda

Browse files
committed
[CI]: Switch to testing two latest ansible-core versions
Switch to run tests against ansible-core 2.16 and 2.17 Also switch to test against latest ansible-modules-hashivault
1 parent 339863d commit 459ccda

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

.github/workflows/pull_request.yml

+5-12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Tests
23

34
# Controls when the action will run.
@@ -14,9 +15,8 @@ jobs:
1415
fail-fast: false
1516
matrix:
1617
ansible:
17-
- "2.9"
18-
- "2.10"
19-
- "2.12"
18+
- "2.16"
19+
- "2.17"
2020
steps:
2121
# Checks-out the repository under $GITHUB_WORKSPACE, so it's accessible to the job
2222
- uses: actions/checkout@v3
@@ -26,15 +26,8 @@ jobs:
2626
pipx uninstall ansible-core
2727
python3 -m pip install --upgrade pip
2828
ansible_version=${{ matrix.ansible }}
29-
if [[ "${{ matrix.ansible }}" = "2.9" ]]; then
30-
ansible_package=ansible
31-
elif [[ "${{ matrix.ansible }}" = "2.10" ]]; then
32-
ansible_package=ansible
33-
ansible_version=3
34-
else
35-
ansible_package=ansible-core
36-
fi
37-
python3 -m pip install $ansible_package==$ansible_version.* docker git+https://github.com/stackhpc/ansible-modules-hashivault@stackhpc
29+
python3 -m pip install ansible-core==$ansible_version.* docker ansible-modules-hashivault
30+
ansible-galaxy collection install -r core-requirements.yml
3831
ansible-galaxy collection build
3932
ansible-galaxy collection install *.tar.gz
4033

core-requirements.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
collections:
3+
- name: ansible.posix
4+
source: https://galaxy.ansible.com
5+
version: <2

0 commit comments

Comments
 (0)