sleighzy / ansible-kafka

Ansible role for installing and configuring Apache Kafka on RedHat and Debian platforms.
MIT License
116 stars 79 forks source link

Update GitHub actions for Node 16 #36

Closed sleighzy closed 9 months ago

sleighzy commented 9 months ago

Upgrades for GitHub actions for CI and fixes for linting and Molecule tests

Upgrade GitHub actions to actions/checkout@v4 and actions/setup-python@v4 due to Node 12 deprecation:

Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.

Migrate to molecule-plugins for installing the docker plugin as these have moved in Molecule 5.

Add support for Docker cGroups v2 to the containers used for testing, note that in addition to cgroupns_mode the rw is flag needed which was previously ro

volumes:
      - /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host

Use the ansible-lint GitHub action as the lint plugin is not present as part of the Molecule tests and linting can be performed separately.