setup ci with github actions #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | | |
ansible-galaxy install geerlingguy.docker | |
- name: "Deploy containers with smarthome role" | |
run: "ansible-playbook -i localhost .github/ansible/playbook-ci.yml -v" | |
- 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" |