Add Debian 12 as molecule scenario and update role's meta information #338
Workflow file for this run
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 Molecule | |
on: | |
push: | |
tags_ignore: | |
- '*' | |
pull_request: | |
env: | |
ANSIBLE_FORCE_COLOR: '1' | |
PY_COLORS: '1' | |
jobs: | |
discover-scenarios: | |
runs-on: ubuntu-20.04 | |
outputs: | |
scenarios: ${{ steps.set-scenarios.outputs.scenarios }} | |
steps: | |
- name: Check out codebase | |
uses: actions/checkout@v3 | |
- name: Discover scenarios | |
id: set-scenarios | |
# Find path to all scenarios | |
run: | | |
export scenarios="[`for x in $(ls -1 molecule -I _tests -I '*.yml'); do echo "'$x'"; done | tr '\n' ',' | sed '$s/,$//'`]" | |
echo "::set-output name=scenarios::$scenarios" | |
test: | |
needs: | |
- discover-scenarios | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
scenario: ${{ fromJson(needs.discover-scenarios.outputs.scenarios) }} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: molecule | |
uses: gofrolist/molecule-action@v2 | |
with: | |
molecule_working_dir: . | |
molecule_command: test | |
molecule_args: --scenario-name ${{ matrix.scenario }} |