Skip to content

Commit cbcd460

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 cbcd460

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/workflows/pull_request.yml

+4-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,7 @@ 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
3830
ansible-galaxy collection build
3931
ansible-galaxy collection install *.tar.gz
4032

0 commit comments

Comments
 (0)