-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (49 loc) · 1.33 KB
/
elastic-molecule.yml
File metadata and controls
57 lines (49 loc) · 1.33 KB
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
---
name: Elastic Molecule
on:
push:
branches:
- main
pull_request:
branches:
- main
defaults:
run:
working-directory: roles/elastic
jobs:
molecule:
name: Molecule Elastic
runs-on: ubuntu-latest
strategy:
matrix:
distro:
- rockylinux9
- ubuntu2204
- ubuntu2404
- debian12
steps:
- name: Check out the codebase.
uses: actions/checkout@v4
- name: Set up Python 3.
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install test dependencies.
run: pip3 install ansible molecule molecule-plugins[docker] docker
- name: Run Molecule destroy (ignore failures)
run: molecule -v destroy
continue-on-error: true
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
MOLECULE_DISTRO: ${{ matrix.distro }}
ANSIBLE_ROLES_PATH: $GITHUB_WORKSPACE/roles
MOLECULE_INSTANCE_NAME: elastic-${{ matrix.distro }}
- name: Run Molecule converge
run: molecule -v converge
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
MOLECULE_DISTRO: ${{ matrix.distro }}
ANSIBLE_ROLES_PATH: $GITHUB_WORKSPACE/roles
MOLECULE_INSTANCE_NAME: elastic-${{ matrix.distro }}