Skip to content

Merge pull request #447 from vladgh/renovate/gofrolist-molecule-actio… #1400

Merge pull request #447 from vladgh/renovate/gofrolist-molecule-actio…

Merge pull request #447 from vladgh/renovate/gofrolist-molecule-actio… #1400

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-24.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: .github/filters.yml
test:
name: "Test scenario ${{ matrix.scenario }} on ${{ matrix.os }}"
runs-on: ubuntu-24.04
needs: changes
if: ${{ needs.changes.outputs.scenario != '[]' && needs.changes.outputs.scenario != '' }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu2404
- ubuntu2204
- debian12
- debian11
scenario: ${{ fromJSON(needs.changes.outputs.scenario) }}
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
path: ansible_collections/vladgh/system
- name: Molecule test
uses: gofrolist/molecule-action@fd5ff78a7db38602a2d267f05f17bdf9acd6d3b9 # v2.7.50
with:
molecule_command: test
molecule_options: --debug --base-config molecule/base.yml
molecule_args: --scenario-name ${{ matrix.scenario }}
molecule_working_dir: ansible_collections/vladgh/system
env:
PY_COLORS: 1
ANSIBLE_FORCE_COLOR: 1
MOLECULE_DISTRO: ${{ matrix.os }}
# continue-on-error: true
# - name: Debugging with tmate
# uses: mxschmitt/[email protected]