Skip to content

fix the matrix

fix the matrix #21

Workflow file for this run

---
name: Ansible Molecule
on: # yamllint disable-line rule:truthy
workflow_dispatch:
push:
tags_ignore:
- '*'
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ansible/ansible-lint@main
test:
needs:
- lint
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image:
# current gen
- amazonlinux2023
- rockylinux9
# previous gen
- ubuntu2204
include:
# test legacy os
- image: amazonlinux2
reqs: ansible-core==2.16.11
- image: centos7
reqs: ansible-core==2.16.11
steps:
- name: checkout
uses: actions/checkout@v4
with:
path: "${{ github.repository }}"
- name: Set up Python 3
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install test dependencies
run: pip install 'molecule-plugins[docker]' requests==2.31.0 ${{ matrix.reqs }}
- name: molecule
run: molecule test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
image: "${{ matrix.image }}"
working-directory: "${{ github.repository }}"