mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-07-10 10:14:38 +02:00
Clean up workflow.
This commit is contained in:
parent
f6d50f8cc5
commit
a9f787fd76
1 changed files with 6 additions and 15 deletions
21
.github/workflows/ansible-test.yml
vendored
21
.github/workflows/ansible-test.yml
vendored
|
@ -36,15 +36,12 @@ jobs:
|
||||||
# image for these stable branches. The list of branches where this is necessary will
|
# 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
|
# shrink over time, check out https://github.com/ansible-collections/news-for-maintainers/issues/28
|
||||||
# for the latest list.
|
# for the latest list.
|
||||||
runs-on: >-
|
runs-on: ubuntu-latest
|
||||||
${{ contains(fromJson(
|
|
||||||
'["stable-2.9", "stable-2.10", "stable-2.11"]'
|
|
||||||
), matrix.ansible) && 'ubuntu-20.04' || 'ubuntu-latest' }}
|
|
||||||
steps:
|
steps:
|
||||||
- name: Perform sanity testing
|
- name: Perform sanity testing
|
||||||
uses: felixfontein/ansible-test-gh-action@main
|
uses: felixfontein/ansible-test-gh-action@main
|
||||||
with:
|
with:
|
||||||
ansible-core-github-repository-slug: ${{ contains(fromJson('["stable-2.9", "stable-2.10", "stable-2.11"]'), matrix.ansible) && 'ansible-community/eol-ansible' || 'ansible/ansible' }}
|
ansible-core-github-repository-slug: ${{ contains(fromJson('["stable-2.14"]'), matrix.ansible) && 'ansible-community/eol-ansible' || 'ansible/ansible' }}
|
||||||
ansible-core-version: ${{ matrix.ansible }}
|
ansible-core-version: ${{ matrix.ansible }}
|
||||||
codecov-token: ${{ secrets.CODECOV_TOKEN }}
|
codecov-token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
testing-type: sanity
|
testing-type: sanity
|
||||||
|
@ -58,10 +55,7 @@ jobs:
|
||||||
# image for these stable branches. The list of branches where this is necessary will
|
# 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
|
# shrink over time, check out https://github.com/ansible-collections/news-for-maintainers/issues/28
|
||||||
# for the latest list.
|
# for the latest list.
|
||||||
runs-on: >-
|
runs-on: ubuntu-latest
|
||||||
${{ contains(fromJson(
|
|
||||||
'["stable-2.9", "stable-2.10", "stable-2.11"]'
|
|
||||||
), matrix.ansible) && 'ubuntu-20.04' || 'ubuntu-latest' }}
|
|
||||||
name: Units (Ⓐ${{ matrix.ansible }})
|
name: 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
|
||||||
|
@ -79,7 +73,7 @@ jobs:
|
||||||
Ansible version ${{ matrix.ansible }}
|
Ansible version ${{ matrix.ansible }}
|
||||||
uses: felixfontein/ansible-test-gh-action@main
|
uses: felixfontein/ansible-test-gh-action@main
|
||||||
with:
|
with:
|
||||||
ansible-core-github-repository-slug: ${{ contains(fromJson('["stable-2.9", "stable-2.10", "stable-2.11"]'), matrix.ansible) && 'ansible-community/eol-ansible' || 'ansible/ansible' }}
|
ansible-core-github-repository-slug: ${{ contains(fromJson('["stable-2.14"]'), matrix.ansible) && 'ansible-community/eol-ansible' || 'ansible/ansible' }}
|
||||||
ansible-core-version: ${{ matrix.ansible }}
|
ansible-core-version: ${{ matrix.ansible }}
|
||||||
codecov-token: ${{ secrets.CODECOV_TOKEN }}
|
codecov-token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
testing-type: units
|
testing-type: units
|
||||||
|
@ -93,10 +87,7 @@ jobs:
|
||||||
# image for these stable branches. The list of branches where this is necessary will
|
# 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
|
# shrink over time, check out https://github.com/ansible-collections/news-for-maintainers/issues/28
|
||||||
# for the latest list.
|
# for the latest list.
|
||||||
runs-on: >-
|
runs-on: ubuntu-latest
|
||||||
${{ contains(fromJson(
|
|
||||||
'["stable-2.9", "stable-2.10", "stable-2.11"]'
|
|
||||||
), matrix.ansible) && 'ubuntu-20.04' || 'ubuntu-latest' }}
|
|
||||||
name: I (Ⓐ${{ matrix.ansible }}+py${{ matrix.python }})
|
name: I (Ⓐ${{ matrix.ansible }}+py${{ matrix.python }})
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
@ -133,7 +124,7 @@ jobs:
|
||||||
under Python ${{ matrix.python }}
|
under Python ${{ matrix.python }}
|
||||||
uses: felixfontein/ansible-test-gh-action@main
|
uses: felixfontein/ansible-test-gh-action@main
|
||||||
with:
|
with:
|
||||||
ansible-core-github-repository-slug: ${{ contains(fromJson('["stable-2.9", "stable-2.10", "stable-2.11"]'), matrix.ansible) && 'ansible-community/eol-ansible' || 'ansible/ansible' }}
|
ansible-core-github-repository-slug: ${{ contains(fromJson('["stable-2.14"]'), matrix.ansible) && 'ansible-community/eol-ansible' || 'ansible/ansible' }}
|
||||||
ansible-core-version: ${{ matrix.ansible }}
|
ansible-core-version: ${{ matrix.ansible }}
|
||||||
codecov-token: ${{ secrets.CODECOV_TOKEN }}
|
codecov-token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
integration-continue-on-error: 'false'
|
integration-continue-on-error: 'false'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue