Skip to content

Use molecule composite action for the remaining 4 workflows #124

Use molecule composite action for the remaining 4 workflows

Use molecule composite action for the remaining 4 workflows #124

---
name: Test firewalld
on:
pull_request:
paths:
- molecule_configs/*
- roles/firewalld/**
- .github/workflows/molecule-firewalld.yml
jobs:
molecule-firewalld:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
scenario:
- centos7
- rocky9
env:
MOLECULE_RUN_TAGS: all
PY_COLORS: 1
ANSIBLE_FORCE_COLOR: 1
steps:
- uses: UCL-MIRSG/.github/actions/molecule-test@04085067e63a06dac56fc4393a3674cdc3f61fa4 # v0.88.0
with:
ansible_major_version: ${{ vars.ANSIBLE_MAJOR_VERSION }}
scenario: ${{ matrix.scenario }}
base_config:
${{ format('{0}{1}_base_config.yml', '../../molecule_configs/',
matrix.scenario ) }}
checkout_path: ansible_collections/mirsg/infrastructure
tests_path: ansible_collections/mirsg/infrastructure/roles/firewalld