Skip to content

remove branch restriction for molecule tests #1

remove branch restriction for molecule tests

remove branch restriction for molecule tests #1

Workflow file for this run

---
name: Molecule Test
on:
push:
pull_request:
workflow_dispatch:
jobs:
test:
name: Molecule Test
runs-on: ubuntu-latest
strategy:
matrix:
scenario:
- default
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Molecule and dependencies
run: |
python -m pip install --upgrade pip
pip install -r molecule/requirements.txt
ansible-galaxy collection install -r molecule/collections.yml
- name: Run Molecule tests
run: |
molecule test -s ${{ matrix.scenario }}
env:
MOLECULE_ROLE_NAME_CHECK: false
- name: Upload Molecule logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: molecule-logs-${{ matrix.scenario }}
path: |
molecule/${{ matrix.scenario }}/.molecule/
molecule/${{ matrix.scenario }}/.cache/
retention-days: 7