-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (47 loc) · 1.43 KB
/
molecule.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
# vim: tabstop=2 expandtab shiftwidth=2 softtabstop=2 smartindent nu
---
name: molecule test
on:
pull_request:
push:
schedule:
- cron: "10 6 * * 1"
jobs:
molecule:
name: ansible
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ansible:
- latest
- pinned
- legacy
distro:
- debian11
- debian12
checkmkversion:
- 2.2.0p14
- 2.1.0p36
include:
- ansible: latest
pip3deps: 'ansible molecule "molecule-plugins[docker]" yamllint ansible-lint "requests<2.29" "urllib3<2"'
- ansible: pinned
pip3deps: '"ansible==7.4.0" "molecule[docker,lint]==3.5.2" "yamllint==1.26.0" "ansible-lint==6.4.0" "requests<2.29" "urllib3<2"'
- ansible: legacy
pip3deps: '"ansible==2.9.27" "molecule[docker,lint]==3.2.3" "yamllint==1.24.2" "ansible-lint==4.2.0" "requests<2.29" "urllib3<2"'
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install test dependencies.
run: pip3 install ${{ matrix.pip3deps }}
- name: run molecule tests
run: molecule test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
MOLECULE_DISTRO: ${{ matrix.distro }}
MOLECULE_CHECKMK_VERSION: ${{ matrix.checkmkversion }}