mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-17 20:38:42 +00:00
Only use ubuntu-20.04 if necessary. (#520)
This commit is contained in:
parent
6ccbde9f98
commit
019712b09f
30
.github/workflows/ansible-test.yml
vendored
30
.github/workflows/ansible-test.yml
vendored
@ -25,7 +25,15 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
ansible:
|
ansible:
|
||||||
- '2.11'
|
- '2.11'
|
||||||
runs-on: ubuntu-20.04
|
# Ansible-test on various stable branches does not yet work well with cgroups v2.
|
||||||
|
# Since ubuntu-latest now uses Ubuntu 22.04, we need to fall back to the ubuntu-20.04
|
||||||
|
# image for these stable branches. The list of branches where this is necessary will
|
||||||
|
# shrink over time, check out https://github.com/ansible-collections/news-for-maintainers/issues/28
|
||||||
|
# for the latest list.
|
||||||
|
runs-on: >-
|
||||||
|
${{ contains(fromJson(
|
||||||
|
'["stable-2.9", "stable-2.10", "stable-2.11", "stable-2.12", "stable-2.13", "stable-2.14"]'
|
||||||
|
), matrix.ansible) && 'ubuntu-20.04' || 'ubuntu-latest' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Perform sanity testing
|
- name: Perform sanity testing
|
||||||
uses: felixfontein/ansible-test-gh-action@integration-error-behavior
|
uses: felixfontein/ansible-test-gh-action@integration-error-behavior
|
||||||
@ -36,7 +44,15 @@ jobs:
|
|||||||
testing-type: sanity
|
testing-type: sanity
|
||||||
|
|
||||||
units:
|
units:
|
||||||
runs-on: ubuntu-20.04
|
# Ansible-test on various stable branches does not yet work well with cgroups v2.
|
||||||
|
# Since ubuntu-latest now uses Ubuntu 22.04, we need to fall back to the ubuntu-20.04
|
||||||
|
# image for these stable branches. The list of branches where this is necessary will
|
||||||
|
# shrink over time, check out https://github.com/ansible-collections/news-for-maintainers/issues/28
|
||||||
|
# for the latest list.
|
||||||
|
runs-on: >-
|
||||||
|
${{ contains(fromJson(
|
||||||
|
'["stable-2.9", "stable-2.10", "stable-2.11", "stable-2.12", "stable-2.13", "stable-2.14"]'
|
||||||
|
), matrix.ansible) && 'ubuntu-20.04' || 'ubuntu-latest' }}
|
||||||
name: EOL Units (Ⓐ${{ matrix.ansible }})
|
name: EOL Units (Ⓐ${{ matrix.ansible }})
|
||||||
strategy:
|
strategy:
|
||||||
# As soon as the first unit test fails, cancel the others to free up the CI queue
|
# As soon as the first unit test fails, cancel the others to free up the CI queue
|
||||||
@ -57,7 +73,15 @@ jobs:
|
|||||||
testing-type: units
|
testing-type: units
|
||||||
|
|
||||||
integration:
|
integration:
|
||||||
runs-on: ubuntu-20.04
|
# Ansible-test on various stable branches does not yet work well with cgroups v2.
|
||||||
|
# Since ubuntu-latest now uses Ubuntu 22.04, we need to fall back to the ubuntu-20.04
|
||||||
|
# image for these stable branches. The list of branches where this is necessary will
|
||||||
|
# shrink over time, check out https://github.com/ansible-collections/news-for-maintainers/issues/28
|
||||||
|
# for the latest list.
|
||||||
|
runs-on: >-
|
||||||
|
${{ contains(fromJson(
|
||||||
|
'["stable-2.9", "stable-2.10", "stable-2.11", "stable-2.12", "stable-2.13", "stable-2.14"]'
|
||||||
|
), matrix.ansible) && 'ubuntu-20.04' || 'ubuntu-latest' }}
|
||||||
name: EOL I (Ⓐ${{ matrix.ansible }}+${{ matrix.docker }}+py${{ matrix.python }}:${{ matrix.target }})
|
name: EOL I (Ⓐ${{ matrix.ansible }}+${{ matrix.docker }}+py${{ matrix.python }}:${{ matrix.target }})
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user