-
Notifications
You must be signed in to change notification settings - Fork 19
52 lines (44 loc) · 979 Bytes
/
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
---
name: Molecule test
on:
push:
branches:
- main
paths-ignore:
- '.github/**'
- 'build/**'
- LICENSE
- Makefile
- README.md
pull_request:
paths-ignore:
- '.github/**'
- 'build/**'
- LICENSE
- Makefile
- README.md
workflow_dispatch:
jobs:
molecule:
runs-on: ubuntu-latest
env:
PY_COLORS: 1
strategy:
fail-fast: false
matrix:
ROLE_TEST_OS: [debian, redhat]
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Setup Podman
run: |
sudo apt-get update
sudo apt-get install -y podman
- name: Setup Python
uses: actions/setup-python@v4
- name: Install Molecule and Podman driver
run: python3 -m pip install molecule "molecule-plugins[podman]"
- name: Run tests
env:
ROLE_TEST_OS: ${{ matrix.ROLE_TEST_OS }}
run: molecule test