Update gofrolist/molecule-action action to v2.7.43 #465
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: 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@c0533e2c0455edc3760ba09a4cf8ac1b0a510918 # v2.7.43 | |
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] |