Skip to content

Release 1.2.0

Release 1.2.0 #78

Workflow file for this run

# https://github.com/ansible-collections/collection_template/blob/main/.github/workflows/ansible-test.yml
# README FIRST
# 1. replace "NAMESPACE" and "COLLECTION_NAME" with the correct name in the env section (e.g. with 'community' and 'mycollection')
# 2. If you don't have unit tests remove that section
# 3. If your collection depends on other collections ensure they are installed, see "Install collection dependencies"
# If you need help please ask in #ansible-community on the Libera.chat IRC network
name: Molecule Tests
on:
workflow_dispatch:
pull_request:
branches:
- main
paths:
- 'roles/**'
push:
branches:
- devel
paths:
- 'roles/**'
env:
NAMESPACE: thorian93
COLLECTION_NAME: main
jobs:
build:
runs-on: ubuntu-22.04
name: Run Molecule
strategy:
fail-fast: false
matrix:
role:
- certmanage
- common
- journald
- logrotate
- ntp
- proxy
- ssh
- sudo
- upgrade
- webserver
steps:
- name: Check out code
uses: actions/checkout@v4
with:
path: ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
- name: Test with molecule
run: |
cd roles/${{ matrix.role }}
molecule test
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}