2020-11-03 16:51:34 +01:00
|
|
|
---
|
|
|
|
name: CI
|
|
|
|
'on':
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
schedule:
|
|
|
|
- cron: "0 5 * * 0"
|
|
|
|
|
2020-11-03 16:58:34 +01:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: 'geerlingguy.apache'
|
|
|
|
|
2020-11-03 16:51:34 +01:00
|
|
|
jobs:
|
|
|
|
|
2020-11-03 16:58:34 +01:00
|
|
|
lint:
|
|
|
|
name: Lint
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out the codebase.
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
path: 'geerlingguy.apache'
|
|
|
|
|
|
|
|
- name: Set up Python 3.
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: '3.x'
|
|
|
|
|
|
|
|
- name: Install test dependencies.
|
2021-03-15 15:26:43 +01:00
|
|
|
run: pip3 install yamllint
|
2020-11-03 16:58:34 +01:00
|
|
|
|
|
|
|
- name: Lint code.
|
|
|
|
run: |
|
|
|
|
yamllint .
|
|
|
|
|
|
|
|
molecule:
|
2020-11-03 16:51:34 +01:00
|
|
|
name: Molecule
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-11-03 16:58:34 +01:00
|
|
|
distro:
|
2021-12-27 18:29:58 +01:00
|
|
|
- rockylinux8
|
2020-11-03 17:33:36 +01:00
|
|
|
- ubuntu2004
|
|
|
|
- debian10
|
2020-11-03 16:51:34 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Check out the codebase.
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
path: 'geerlingguy.apache'
|
|
|
|
|
|
|
|
- name: Set up Python 3.
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: '3.x'
|
|
|
|
|
|
|
|
- name: Install test dependencies.
|
2023-04-21 00:27:01 +02:00
|
|
|
run: pip3 install ansible molecule molecule-plugins[docker] docker
|
2020-11-03 16:51:34 +01:00
|
|
|
|
|
|
|
- name: Run Molecule tests.
|
2020-11-03 17:23:14 +01:00
|
|
|
run: molecule test
|
2020-11-03 16:51:34 +01:00
|
|
|
env:
|
|
|
|
PY_COLORS: '1'
|
|
|
|
ANSIBLE_FORCE_COLOR: '1'
|
|
|
|
MOLECULE_DISTRO: ${{ matrix.distro }}
|