Updates and fixes #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| pull_request: | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint-and-molecule: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install \ | |
| "ansible-core>=2.15,<2.18" \ | |
| "molecule>=6,<7" \ | |
| "molecule-plugins[docker]" \ | |
| "ansible-lint" \ | |
| "yamllint" | |
| - name: Install Ansible collections | |
| run: ansible-galaxy collection install -r requirements.yml | |
| - name: Lint YAML | |
| run: yamllint . | |
| - name: Lint Ansible | |
| run: ansible-lint . | |
| - name: Ensure ip6tables filter module available | |
| run: sudo modprobe ip6table_filter || true | |
| - name: Molecule test | |
| run: molecule test |