Skip to content

Commit

Permalink
Add new and drop deprecated versions of ansible-core (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
mamercad authored Feb 12, 2024
1 parent ff7370e commit 55383ed
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 17 deletions.
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

0 comments on commit 55383ed

Please sign in to comment.