Skip to content

Update gofrolist/molecule-action action to v2.7.1 #316

Update gofrolist/molecule-action action to v2.7.1

Update gofrolist/molecule-action action to v2.7.1 #316

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/[email protected]
- name: Detect changes
uses: dorny/[email protected]
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:
- ubuntu2204
- ubuntu2004
- debian12
- debian11
- fedora37
- fedora38
- rockylinux8
- rockylinux9
scenario: ${{ fromJSON(needs.changes.outputs.scenario) }}
steps:
- name: Checkout
uses: actions/[email protected]
with:
path: ansible_collections/vladgh/samba
- name: Molecule test
uses: gofrolist/[email protected]
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]