Skip to content
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

Add new and drop deprecated versions of ansible-core #352

Merged
merged 1 commit into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
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
21 changes: 13 additions & 8 deletions .github/workflows/ansible-test-sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,25 @@ on:
jobs:
sanity:
timeout-minutes: 30
name: Sanity (Ⓐ$${{ matrix.ansible }})
name: Sanity (Ⓐ$${{ matrix.versions.ansible }})
strategy:
fail-fast: false
matrix:
ansible:
- stable-2.12
- stable-2.13
- stable-2.14
versions:
- ansible: stable-2.14
python: "3.9"
- ansible: stable-2.15
python: "3.9"
- ansible: stable-2.16
python: "3.10"
- ansible: devel
python: "3.10"
runs-on: ubuntu-22.04
steps:
- name: Perform testing
uses: ansible-community/ansible-test-gh-action@release/v1
with:
ansible-core-version: ${{ matrix.ansible }}
origin-python-version: 3.9
target-python-version: 3.9
ansible-core-version: ${{ matrix.versions.ansible }}
origin-python-version: ${{ matrix.versions.python }}
target-python-version: ${{ matrix.versions.python }}
testing-type: sanity
21 changes: 13 additions & 8 deletions .github/workflows/ansible-test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,26 @@ jobs:
units:
runs-on: ubuntu-22.04
timeout-minutes: 30
name: Units (Ⓐ${{ matrix.ansible }})
name: Units (Ⓐ${{ matrix.versions.ansible }})
strategy:
fail-fast: false
matrix:
ansible:
- stable-2.12
- stable-2.13
- stable-2.14
versions:
- ansible: stable-2.14
python: "3.9"
- ansible: stable-2.15
python: "3.9"
- ansible: stable-2.16
python: "3.10"
- ansible: devel
python: "3.10"
steps:
- name: Perform testing
uses: ansible-community/ansible-test-gh-action@release/v1
with:
ansible-core-version: ${{ matrix.ansible }}
origin-python-version: 3.9
target-python-version: 3.9
ansible-core-version: ${{ matrix.versions.ansible }}
origin-python-version: ${{ matrix.versions.python }}
target-python-version: ${{ matrix.versions.python }}
testing-type: units
test-deps: >-
ansible.netcommon
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ This collection contains modules and plugins to assist in automating [DigitalOce

The collection is tested and supported with:

- ansible-core >= 2.12 (not including `devel`)
- ansible-core >= 2.14 (including `devel`)
- python >= 3.9

### Installing the Collection from Ansible Galaxy
Expand Down
2 changes: 2 additions & 0 deletions changelogs/fragments/351-ansible-core-versions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
trivial:
- ci - add new and drop deprecated versions of ``ansible-core`` (https://github.com/ansible-collections/community.digitalocean/issues/351).
2 changes: 2 additions & 0 deletions tests/utils/render.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ set -u

function main()
{
# shellcheck disable=SC2155
readonly template="$1"; shift
# shellcheck disable=SC2155
readonly content="$(cat "$template")"

eval "echo \"$content\""
Expand Down
Loading