mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-12-23 17:10:19 +01:00
CI: Squash CentOS actions into signle file
* add CentOS 9 * use better tasks names Signed-off-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
parent
59a3cb190f
commit
2d7009c59a
4 changed files with 60 additions and 53 deletions
60
.github/workflows/ansible-centos-check.yml
vendored
Normal file
60
.github/workflows/ansible-centos-check.yml
vendored
Normal file
|
@ -0,0 +1,60 @@
|
|||
name: Run Ansible Check on CentOS
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
centos-6:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
# Workaround missing support for end_host in old ansible
|
||||
- run: "sed -i -e 's/meta: end_host/assert:\\n that: __sshd_os_supported|bool/' tasks/install.yml"
|
||||
|
||||
- name: ansible check with centos 6
|
||||
uses: roles-ansible/check-ansible-centos-centos6-action@master
|
||||
with:
|
||||
group: local
|
||||
hosts: localhost
|
||||
targets: "tests/tests_*.yml"
|
||||
|
||||
centos-7:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout PR
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: ansible check with centos 7
|
||||
uses: roles-ansible/check-ansible-centos-centos7-action@master
|
||||
with:
|
||||
group: local
|
||||
hosts: localhost
|
||||
targets: "tests/tests_*.yml"
|
||||
|
||||
centos-8:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout PR
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: ansible check with centos 8
|
||||
uses: roles-ansible/check-ansible-centos-centos8-action@master
|
||||
with:
|
||||
group: local
|
||||
hosts: localhost
|
||||
targets: "tests/tests_*.yml"
|
||||
requirements: tests/requirements.yml
|
||||
|
||||
centos-9:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout PR
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: ansible check with centos 9
|
||||
uses: roles-ansible/check-ansible-centos-centos9-action@main
|
||||
with:
|
||||
group: local
|
||||
hosts: localhost
|
||||
targets: "tests/tests_*.yml"
|
||||
requirements: tests/requirements.yml
|
19
.github/workflows/ansible-centos6.yml
vendored
19
.github/workflows/ansible-centos6.yml
vendored
|
@ -1,19 +0,0 @@
|
|||
name: Run tests on CentOS 6
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
# Workaround missing support for end_host in old ansible
|
||||
- run: "sed -i -e 's/meta: end_host/assert:\\n that: __sshd_os_supported|bool/' tasks/install.yml"
|
||||
|
||||
- name: ansible check with centos:6
|
||||
uses: roles-ansible/check-ansible-centos-centos6-action@master
|
||||
with:
|
||||
group: local
|
||||
hosts: localhost
|
||||
targets: "tests/tests_*.yml"
|
17
.github/workflows/ansible-centos7.yml
vendored
17
.github/workflows/ansible-centos7.yml
vendored
|
@ -1,17 +0,0 @@
|
|||
name: Run tests on CentOS 7
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout PR
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: ansible check with centos:7
|
||||
uses: roles-ansible/check-ansible-centos-centos7-action@master
|
||||
with:
|
||||
group: local
|
||||
hosts: localhost
|
||||
targets: "tests/tests_*.yml"
|
17
.github/workflows/ansible-centos8.yml
vendored
17
.github/workflows/ansible-centos8.yml
vendored
|
@ -1,17 +0,0 @@
|
|||
name: Run tests on CentOS 8
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout PR
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: ansible check with centos:8
|
||||
uses: roles-ansible/check-ansible-centos-centos8-action@master
|
||||
with:
|
||||
group: local
|
||||
hosts: localhost
|
||||
targets: "tests/tests_*.yml"
|
Loading…
Reference in a new issue