This repository has been archived by the owner on Nov 21, 2024. It is now read-only.
uses new ansible-lint action #7
This file contains 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: ansible | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- wip/next | |
jobs: | |
ansible-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ansible/ansible-lint@v24 | |
molecule: | |
needs: | |
- ansible-lint | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
distro: | |
- archlinux | |
- ubuntu-focal | |
- ubuntu-jammy | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- run: pip3 install ansible molecule molecule-plugins[docker] docker | |
- run: ansible --version | |
- run: molecule --version | |
- run: molecule test -p ${{ matrix.distro }} | |
env: | |
ANSIBLE_DIFF_ALWAYS: 'True' | |
PY_COLORS: '1' | |
... |