Skip to content

Run molecule in GH action #1

Run molecule in GH action

Run molecule in GH action #1

Workflow file for this run

name: Run ansible-lint
on:
push:
pull_request:
jobs:
ansible-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run ansible-lint
run: |
pip install -r requirements-testing.txt
ansible-lint -v
molecule:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: |
pip install -r requirements-testing.txt
- name: Run molecule
run: |
molecule converge --scenario-name default
- name: Destroy molecule infrastructure
if: always()
run:
molecule destroy