-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (50 loc) · 1.13 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
name: Molecule Test
on:
push:
branches:
- master
paths-ignore:
- ".gitignore"
- "**.md"
- "meta/main.yml"
pull_request:
paths-ignore:
- ".gitignore"
- "**.md"
- "meta/main.yml"
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 4
matrix:
scenario:
# - debian-9
# - debian-10
# - debian-11
# - debian-12
# - ubuntu-18.04
# - ubuntu-20.04
- ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Python 3
uses: actions/setup-python@v1
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip pip-tools
pip-sync requirements.txt
ansible --version
molecule --version
- name: Lint
run: |
set -e
yamllint .
ansible-lint
flake8
- name: Molecule
run: |
molecule --base-config molecule/_shared/base.yml test --scenario-name ${{ matrix.scenario }}