Merge pull request #21 from sqdk/master #57
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: Molecule Test | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
max-parallel: 4 | |
matrix: | |
molecule_distro: ['rockylinux8', 'rockylinux9', 'ubuntu2004', 'ubuntu2204'] | |
env: | |
ANSIBLE_CALLBACK_WHITELIST: profile_tasks | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python 3 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install ansible ansible-lint flake8 molecule molecule-docker docker yamllint | |
ansible --version | |
ansible-lint --version | |
molecule --version | |
- name: Test with molecule | |
run: | | |
molecule test --all | |
env: | |
MOLECULE_DISTRO: ${{ matrix.molecule_distro }} |