Skip to content

Commit b58b8e1

Browse files
authored
github ci: test builds for both ansible 5 and 6 (#94)
* github ci: test builds for both ansible 5 and 6 * ansible 6: add first version of ansible-6.build
1 parent a0699a1 commit b58b8e1

File tree

3 files changed

+160
-3
lines changed

3 files changed

+160
-3
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: antsibull-build (ansible 6.x)
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Check out antsibull
14+
uses: actions/checkout@v2
15+
with:
16+
repository: ansible-community/antsibull
17+
ref: main
18+
path: antsibull
19+
20+
- name: Pre-create build directory
21+
run: mkdir -p antsibull/build
22+
23+
# This is where the antsibull build-release role expects it by default
24+
- name: Check out ansible-build-data under antsibull build directory
25+
uses: actions/checkout@v2
26+
with:
27+
path: antsibull/build/ansible-build-data
28+
29+
- name: Set up Python 3.9
30+
uses: actions/setup-python@v2
31+
with:
32+
python-version: 3.9
33+
34+
- name: Install dependencies
35+
run: |
36+
python3 -m pip install --upgrade pip
37+
python3 -m pip install poetry ansible-core
38+
39+
- name: Test building ansible 6.x
40+
working-directory: antsibull
41+
run: |
42+
ansible-playbook -vv playbooks/build-single-release.yaml \
43+
-e antsibull_build_file=ansible-6.build \
44+
-e antsibull_ansible_version=6.0.0a1 \
45+
-e antsibull_data_dir="{{ antsibull_data_git_dir }}/6" \
46+
-e antsibull_ansible_git_version=milestone \
47+
-e antsibull_data_reset=false
48+
49+
- name: Combine and upload coverage stats
50+
working-directory: antsibull
51+
run: |
52+
poetry run coverage combine .coverage.*
53+
poetry run coverage report
54+
poetry run coverage xml -i
55+
poetry run codecov

.github/workflows/antsibull-build.yml renamed to .github/workflows/antsibull-build-default.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name: antsibull-build tests
2-
1+
# antsibull/roles/build-release defaults to 5.x for the time being
2+
name: antsibull-build default (ansible 5.x)
33
on:
44
push:
55
branches: [main]
@@ -40,7 +40,7 @@ jobs:
4040
- name: Test building a release with the defaults
4141
working-directory: antsibull
4242
run: |
43-
ansible-playbook -vv playbooks/build-single-release.yaml -e antsibull_ansible_version=6.0.0a1 -e antsibull_data_reset=false
43+
ansible-playbook -vv playbooks/build-single-release.yaml -e antsibull_data_reset=false
4444
4545
- name: Combine and upload coverage stats
4646
working-directory: antsibull

6/ansible-6.build

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
_ansible_version: 6
2+
# TODO: Bump to 2.13, devel or milestone
3+
_ansible_core_version: 2.12.1
4+
amazon.aws: >=3.0.0,<4.0.0
5+
ansible.netcommon: >=2.5.0,<3.0.0
6+
ansible.posix: >=1.3.0,<2.0.0
7+
ansible.utils: >=2.4.0,<3.0.0
8+
ansible.windows: >=1.8.0,<2.0.0
9+
arista.eos: >=4.0.0,<5.0.0
10+
awx.awx: >=19.4.0,<20.0.0
11+
azure.azcollection: >=1.10.0,<2.0.0
12+
check_point.mgmt: >=2.2.0,<3.0.0
13+
chocolatey.chocolatey: >=1.1.0,<2.0.0
14+
cisco.aci: >=2.1.0,<3.0.0
15+
cisco.asa: >=2.1.0,<3.0.0
16+
cisco.intersight: >=1.0.0,<2.0.0
17+
cisco.ios: >=2.6.0,<3.0.0
18+
cisco.iosxr: >=2.6.0,<3.0.0
19+
cisco.ise: >=2.1.0,<3.0.0
20+
cisco.meraki: >=2.5.0,<3.0.0
21+
cisco.mso: >=1.2.0,<2.0.0
22+
cisco.nso: >=1.0.0,<2.0.0
23+
cisco.nxos: >=2.8.0,<3.0.0
24+
cisco.ucs: >=1.6.0,<2.0.0
25+
cloud.common: >=2.1.0,<3.0.0
26+
cloudscale_ch.cloud: >=2.2.0,<3.0.0
27+
community.aws: >=2.1.0,<3.0.0
28+
community.azure: >=1.1.0,<2.0.0
29+
community.ciscosmb: >=1.0.0,<2.0.0
30+
community.crypto: >=2.0.0,<3.0.0
31+
community.digitalocean: >=1.13.0,<2.0.0
32+
community.dns: >=2.0.0,<3.0.0
33+
community.docker: >=2.0.0,<3.0.0
34+
community.fortios: >=1.0.0,<2.0.0
35+
community.general: >=4.1.0,<5.0.0
36+
community.google: >=1.0.0,<2.0.0
37+
community.grafana: >=1.3.0,<2.0.0
38+
community.hashi_vault: >=2.1.0,<3.0.0
39+
community.hrobot: >=1.2.0,<2.0.0
40+
community.kubernetes: >=2.0.0,<3.0.0
41+
community.kubevirt: >=1.0.0,<2.0.0
42+
community.libvirt: >=1.0.0,<2.0.0
43+
community.mongodb: >=1.3.0,<2.0.0
44+
community.mysql: >=3.0.0,<4.0.0
45+
community.network: >=3.0.0,<4.0.0
46+
community.okd: >=2.1.0,<3.0.0
47+
community.postgresql: >=1.6.0,<2.0.0
48+
community.proxysql: >=1.3.0,<2.0.0
49+
community.rabbitmq: >=1.1.0,<2.0.0
50+
community.routeros: >=2.0.0,<3.0.0
51+
community.skydive: >=1.0.0,<2.0.0
52+
community.sops: >=1.2.0,<2.0.0
53+
community.vmware: >=1.17.0,<2.0.0
54+
community.windows: >=1.8.0,<2.0.0
55+
community.zabbix: >=1.5.0,<2.0.0
56+
containers.podman: >=1.9.0,<2.0.0
57+
cyberark.conjur: >=1.1.0,<2.0.0
58+
cyberark.pas: >=1.0.0,<2.0.0
59+
dellemc.enterprise_sonic: >=1.1.0,<2.0.0
60+
dellemc.openmanage: >=4.3.0,<5.0.0
61+
dellemc.os10: >=1.1.0,<2.0.0
62+
dellemc.os6: >=1.0.0,<2.0.0
63+
dellemc.os9: >=1.0.0,<2.0.0
64+
f5networks.f5_modules: >=1.13.0,<2.0.0
65+
fortinet.fortimanager: >=2.1.0,<3.0.0
66+
fortinet.fortios: >=2.1.0,<3.0.0
67+
frr.frr: >=1.0.0,<2.0.0
68+
gluster.gluster: >=1.0.0,<2.0.0
69+
google.cloud: >=1.0.0,<2.0.0
70+
hetzner.hcloud: >=1.6.0,<2.0.0
71+
hpe.nimble: >=1.1.0,<2.0.0
72+
ibm.qradar: >=1.0.0,<2.0.0
73+
infinidat.infinibox: >=1.3.0,<2.0.0
74+
infoblox.nios_modules: >=1.2.0,<2.0.0
75+
inspur.sm: >=2.0.0,<3.0.0
76+
junipernetworks.junos: >=2.8.0,<3.0.0
77+
kubernetes.core: >=2.2.0,<3.0.0
78+
mellanox.onyx: >=1.0.0,<2.0.0
79+
netapp.aws: >=21.7.0,<22.0.0
80+
netapp.azure: >=21.10.0,<22.0.0
81+
netapp.cloudmanager: >=21.12.0,<22.0.0
82+
netapp.elementsw: >=21.7.0,<22.0.0
83+
netapp.ontap: >=21.14.0,<22.0.0
84+
netapp.storagegrid: >=21.8.0,<22.0.0
85+
netapp.um_info: >=21.8.0,<22.0.0
86+
netapp_eseries.santricity: >=1.2.0,<2.0.0
87+
netbox.netbox: >=3.4.0,<4.0.0
88+
ngine_io.cloudstack: >=2.2.0,<3.0.0
89+
ngine_io.exoscale: >=1.0.0,<2.0.0
90+
ngine_io.vultr: >=1.1.0,<2.0.0
91+
openstack.cloud: >=1.5.0,<2.0.0
92+
openvswitch.openvswitch: >=2.1.0,<3.0.0
93+
ovirt.ovirt: >=1.6.0,<2.0.0
94+
purestorage.flasharray: >=1.11.0,<2.0.0
95+
purestorage.flashblade: >=1.8.0,<2.0.0
96+
sensu.sensu_go: >=1.12.0,<2.0.0
97+
servicenow.servicenow: >=1.0.0,<2.0.0
98+
splunk.es: >=1.0.0,<2.0.0
99+
t_systems_mms.icinga_director: >=1.26.0,<2.0.0
100+
theforeman.foreman: >=3.0.0,<4.0.0
101+
vyos.vyos: >=2.6.0,<3.0.0
102+
wti.remote: >=1.0.0,<2.0.0

0 commit comments

Comments
 (0)