-
Notifications
You must be signed in to change notification settings - Fork 8
62 lines (55 loc) · 1.45 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
51
52
53
54
55
56
57
58
59
60
61
62
name: molecule
on:
push:
pull_request:
schedule:
- cron: '0 18 * * sun'
jobs:
build:
name: ${{ matrix.image }} zsh_plugin ${{ matrix.zsh_plugin }}
runs-on: ubuntu-22.04
env:
docker_namespace: ghcr.io/diodonfrost/docker-ansible
strategy:
fail-fast: false
matrix:
image:
- almalinux:8
- rockylinux:8
- centos:stream8
- fedora:39
- fedora:38
- ubuntu:22.04
- ubuntu:20.04
- debian:12
- debian:11
- oraclelinux:8
- amazonlinux:2
- opensuse:leap
- archlinux:latest
zsh_plugin:
- zsh
- ohmyzsh
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install Molecule
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Test Ansible role
run: molecule test
env:
namespace: ${{ env.docker_namespace }}
image: ansible-${{ matrix.image }}
zsh_plugin: ${{ matrix.zsh_plugin }}
- name: Test Ansible role with check_mode enable
run: molecule check
env:
namespace: ${{ env.docker_namespace }}
image: ansible-${{ matrix.image }}
zsh_plugin: ${{ matrix.zsh_plugin }}