-
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (34 loc) · 1.15 KB
/
test-ubuntu-lts.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
name: "Test (Ubuntu 22.04)"
on:
pull_request:
branches:
- "master"
push:
branches:
- "master"
jobs:
deploy:
runs-on: "ubuntu-22.04"
steps:
- uses: "actions/checkout@v4"
- name: "Print Ansible environment"
run: "ansible --version"
- name: "Install dependencies"
run: |
# fix ModuleNotFoundError: No module named 'requests'
/opt/pipx/venvs/ansible-core/bin/python -m pip install requests
ansible-galaxy install geerlingguy.docker
ansible-galaxy collection install community.docker
ansible-galaxy collection install . -f
- name: "Deploy containers with smarthome role"
run: "ansible-playbook -i localhost .github/ansible/playbook-ci.yml -v -e \"ansible_user=${USER}\""
- name: "Wait for containers to start"
run: "sleep 60"
- name: "Print docker processes"
run: "docker ps -a"
- name: "Print homeassistant logs"
run: "docker logs homeassistant"
- name: "Print zigbee2mqtt logs"
run: "docker logs zigbee2mqtt"
- name: "Print mosquitto logs"
run: "docker logs mosquitto"