-
Notifications
You must be signed in to change notification settings - Fork 2
59 lines (46 loc) · 1.55 KB
/
tests.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
---
name: Integrity Tests with Ansible
on:
push:
paths-ignore:
- "README.md"
- "docs/**"
- ".vscode/**"
branches:
- "main"
pull_request:
branches:
- "main"
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version:
- "3.10"
- "3.9"
- "3.8"
steps:
- name: Checkout Codebase
uses: actions/checkout@v3
- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install ansible and pip dependencies
run: python -m pip install -r requirements.txt
- name: Install ansible.utils collection
run: ansible-galaxy collection install -r requirements.yml
- name: Generate the Default Komponist Stack
run: ansible-playbook -vv generate_stack.yml
- name: Test Integrity of Generated Directories
run: ansible-playbook tests/test_generated_directories.yml
- name: Test Integrity of Generated Files
run: ansible-playbook tests/test_generated_files.yml
- name: Test Schema Validation Checks for Generated Files
run: ansible-playbook tests/test_schemas.yml
- name: Test Content Checks for Generated Files for Mosquitto / Node-RED
run: ansible-playbook tests/test_file_contents.yml
- name: Test Containers for Komponist
run: ansible-playbook tests/test_compose_containers.yml