Skip to content

Update gofrolist/molecule-action action to v2.7.45 #469

Update gofrolist/molecule-action action to v2.7.45

Update gofrolist/molecule-action action to v2.7.45 #469

Workflow file for this run

name: Test
on:
push:
branches:
- '*'
tags:
- 'v*.*.*'
pull_request:
branches:
- '*'
release:
types:
- published
jobs:
changes:
name: Detect file changes
runs-on: ubuntu-22.04
outputs:
scenario: ${{ steps.filter.outputs.changes }}
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Detect changes
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: filter
with:
filters: |
default:
- roles/server/**/!(**.md)
- molecule/default/**
- .github/workflows/test.yml
test:
name: "Test scenario ${{ matrix.scenario }} on ${{ matrix.os }}"
runs-on: ubuntu-22.04
needs: changes
if: ${{ needs.changes.outputs.scenario != '[]' && needs.changes.outputs.scenario != '' }}
strategy:
fail-fast: true
matrix:
os:
- ubuntu2404
- ubuntu2204
- debian12
- debian11
- fedora40
- fedora39
scenario: ${{ fromJSON(needs.changes.outputs.scenario) }}
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
path: ansible_collections/vladgh/samba
- name: Molecule test
uses: gofrolist/molecule-action@d9a782b5bed1604b52df9bc88254b50abb828f79 # v2.7.45
with:
molecule_command: test
molecule_options: --debug
molecule_args: --scenario-name ${{ matrix.scenario }}
molecule_working_dir: ansible_collections/vladgh/samba
env:
PY_COLORS: 1
ANSIBLE_FORCE_COLOR: 1
MOLECULE_DISTRO: ${{ matrix.os }}
# continue-on-error: true
# - name: Debugging with tmate
# uses: mxschmitt/[email protected]