equinix-labs / ansible-collection-equinix

Ansible content to help automate the management of Equinix resources
https://deploy.equinix.com/labs/ansible-collection-equinix/
GNU General Public License v3.0
2 stars 8 forks source link

ci: setup semantic release GHA #154

Closed t0mk closed 4 months ago

t0mk commented 4 months ago

This PR changes the release GHA so that the version number is derived from history using semantic-release github action. It create GitHub release and uploads collection to Galaxy.

In addtion

fixes #132 and #152

t0mk commented 4 months ago

Integration tests fail because Ansible 7.5.0 needs Python 3.10. We have Ansible 7.5.0 as dev-requirement so that we can use ansible-galaxy to upload the collection. Integration tests have Python 3.8 hardcoded right now.

To resolve this, I think we have to bump integration tests action to Python 3.10 and declare that we officially support Python 3.10. anible-galaxy collection publish will not work with Ansible lower than 7.5.0 and Ansible 7.5.0 needs PYthon 3.10.

edit: Ansbile 7.5.0 needs Python 3.9 https://github.com/ansible-community/ansible-build-data/blob/15d59523ce2da44201f6d6708c8cdc4d9de0d539/7/ansible-7.5.0.deps#L3

ctreatma commented 4 months ago

Before setting up a semantic release action we'll need to add a GHA workflow to enforce Conventional Commit tags in PR titles so that the semantic release action can use those to calculate the next version.

t0mk commented 4 months ago

@ctreatma good point. I just created #156

github-actions[bot] commented 4 months ago

This PR is included in version 0.4.0 :tada: