home-assistant-config/.github/workflows/home-assistant.yml

31 lines
849 B
YAML
Raw Normal View History

2021-07-11 22:34:52 -04:00
---
name: 🏡 Home Assistant CI
on:
push:
pull_request:
jobs:
yamllint:
name: 🧹 yamllint
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout code
uses: actions/checkout@v1
- name: 🕵️ Run yamllint
uses: "docker://pipelinecomponents/yamllint:latest"
with:
args: yamllint --format github .
homme-assistant:
name: 🏡 Home Assistant Config Check
runs-on: ubuntu-latest
needs: [yamllint]
steps:
- name: 📥 Checkout code
uses: actions/checkout@v1
2021-07-12 23:13:16 -04:00
- name: ➡️ Copy stub files
run: cp -R ./.stubs/* .
2021-07-11 22:34:52 -04:00
- name: 🕵️ Check configuration
uses: "docker://homeassistant/home-assistant:stable"
with:
args: |
2021-07-12 23:13:16 -04:00
python -m homeassistant --config /github/workspace --script check_config --info all