-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (59 loc) · 1.84 KB
/
main.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
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Ansible Molecule Pipeline
on: # yamllint disable-line rule:truthy
push:
branches: [main]
pull_request:
branches: [main]
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
jobs:
molecule:
name: Molecule Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- image: geerlingguy/docker-debian10-ansible:latest
command: /lib/systemd/systemd
- image: geerlingguy/docker-debian11-ansible:latest
command: /lib/systemd/systemd
- image: geerlingguy/docker-ubuntu2004-ansible:latest
- image: geerlingguy/docker-ubuntu2204-ansible:latest
- image: ghcr.io/artis3n/docker-almalinux8-ansible:latest
- image: geerlingguy/docker-rockylinux8-ansible:latest
- image: geerlingguy/docker-rockylinux9-ansible:latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install test dependencies
run: pip install -r requirements.txt
- name: Run Molecule Test
run: molecule test
env:
MOLECULE_IMAGE: ${{ matrix.image }}
MOLECULE_COMMAND: ${{ matrix.command }}
molecule-legacy:
name: Molecule Test Legacy OS
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- image: geerlingguy/docker-centos7-ansible:latest
command: /usr/lib/systemd/systemd
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install test dependencies
run: pip install -r requirements.txt
- name: Run Molecule Test
run: molecule test
env:
MOLECULE_IMAGE: ${{ matrix.image }}
MOLECULE_COMMAND: ${{ matrix.command }}