Skip to content

Commit 31ba590

Browse files
committed
feat: add ansible 2.15 and 2.18 to test matrix and remove 2.12
Ansible `2.12` has been removed from the test matrix and replaced with `2.15` and `2.18`. Also the `ansible-modules-hashivault` has been updated.
1 parent d75e16b commit 31ba590

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

.github/workflows/lint-collection.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ jobs:
66
lint:
77
uses: stackhpc/.github/.github/workflows/lint-collection.yml@main
88
with:
9-
lint_pip_dependencies: git+https://github.com/stackhpc/ansible-modules-hashivault@stackhpc
9+
lint_pip_dependencies: git+https://github.com/stackhpc/ansible-modules-hashivault@c22434d887f0b8a5ac3ebda710664a027291e71c

.github/workflows/pull_request.yml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,32 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
ansible:
17-
- "2.12"
16+
ansible_version:
17+
- "2.15"
18+
- "2.18"
19+
python_version:
20+
- "3.9"
21+
- "3.11"
22+
exclude:
23+
- python_version: "3.9"
24+
ansible_version: "2.18"
1825
steps:
19-
# Checks-out the repository under $GITHUB_WORKSPACE, so it's accessible to the job
20-
- uses: actions/checkout@v3
26+
- name: Github Checkout 🛎
27+
uses: actions/checkout@v4
2128

22-
- name: Install dependencies
29+
- name: Setup Python ${{ matrix.python_version }} 🐍
30+
uses: actions/setup-python@v5
31+
with:
32+
python-version: ${{ matrix.python_version }}
33+
34+
- name: Install dependencies 📦
2335
run: |
2436
pipx uninstall ansible-core
2537
python3 -m pip install --upgrade pip
26-
python3 -m pip install ansible-core==${{ matrix.ansible }}.* docker git+https://github.com/stackhpc/ansible-modules-hashivault@stackhpc
38+
python3 -m pip install ansible-core==${{ matrix.ansible_version }}.* docker git+https://github.com/stackhpc/ansible-modules-hashivault@c22434d887f0b8a5ac3ebda710664a027291e71c # yamllint disable-line rule:line-length
2739
ansible-galaxy collection build
2840
ansible-galaxy collection install *.tar.gz
2941
30-
# TODO: Use ansible-test to run these.
31-
- name: Running integration tests
42+
- name: Run integration tests 🧪
3243
run: |
3344
ansible-playbook -i tests/inventory -v tests/*.yml -e ansible_python_interpreter=$(which python3)

0 commit comments

Comments
 (0)