-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (48 loc) · 1.37 KB
/
molecule-monitoring.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
name: Test install_monitoring playbook
# yamllint disable-line rule:truthy
on:
pull_request:
paths:
- molecule_configs/*
- roles/monitoring_client/**
- roles/monitoring_server/**
- .github/workflows/molecule-monitoring.yml
jobs:
molecule-monitoring:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
scenario:
- centos7_monitoring
- rocky9_monitoring
env:
PY_COLORS: 1
ANSIBLE_FORCE_COLOR: 1
steps:
- name: Check out the codebase
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
with:
path: ansible_collections/mirsg/infrastructure
- name: Set up Python
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5
with:
python-version: 3.11
- name: Install test dependencies
shell: bash
run: |
sudo apt-get update && sudo apt-get -y install rsync
python3 -m pip install --upgrade pip
python3 -m pip install \
ansible \
molecule \
molecule-plugins[docker] \
docker \
passlib \
requests
- name: Test with molecule
shell: bash
run: |
cd ansible_collections/mirsg/infrastructure/playbooks
molecule test --scenario-name ${{ matrix.scenario }}