Add a CI workflow for Molecule
This commit is contained in:
44
.github/workflows/molecule.yml
vendored
Normal file
44
.github/workflows/molecule.yml
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
---
|
||||
name: molecule
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
|
||||
jobs:
|
||||
|
||||
molecule:
|
||||
name: molecule
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
distro:
|
||||
- ubuntu2404
|
||||
- ubuntu2204
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- uses: mamba-org/setup-micromamba@4d84239119b14cba1690b971f05c0bab912bea04
|
||||
with:
|
||||
micromamba-version: '2.4.0-0'
|
||||
environment-file: ci/conda.yml
|
||||
init-shell: bash
|
||||
post-cleanup: 'all'
|
||||
cache-environment: true
|
||||
|
||||
- name: "Install role dependencies"
|
||||
run: ansible-galaxy install -r requirements.yml
|
||||
shell: micromamba-shell {0}
|
||||
|
||||
- name: "Run Molecule tests"
|
||||
run: molecule test
|
||||
shell: micromamba-shell {0}
|
||||
env:
|
||||
PY_COLORS: '1'
|
||||
ANSIBLE_FORCE_COLOR: '1'
|
||||
MOLECULE_DISTRO: ${{ matrix.distro }}
|
||||
Reference in New Issue
Block a user