-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (38 loc) · 1.01 KB
/
molecule-test.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
name: Molecule-test
on:
push:
branches:
- master
pull_request: null
jobs:
molecule:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
scenario:
- centos7
- Debian10
- debian11
- fedora35
- oraclelinux8
- rockylinux8
- ubuntu18.04
- ubuntu2004
- ubuntu2204
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: "${{ github.repository }}"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install ansible-lint molecule molecule-plugins[docker] docker flake8 flake8-bugbear flake8-docstrings flake8-import-order flake8-pylint pytest pytest-testinfra yamllint
- name: Molecule
uses: gofrolist/molecule-action@v2
with:
molecule_command: test
molecule_args: --scenario-name ${{ matrix.scenario }}
env:
ANSIBLE_FORCE_COLOR: '1'